aboutsummaryrefslogtreecommitdiff
path: root/src/rpc/net.cpp
diff options
context:
space:
mode:
authorCory Fields <cory-nospam-@coryfields.com>2016-05-31 15:50:24 -0400
committerCory Fields <cory-nospam-@coryfields.com>2016-07-31 14:01:43 -0400
commitb6c3ff3daed432e71d1c5bfe2357c4bb9fdc862a (patch)
tree102e1236181b8fd21235e31154c160cc9a393757 /src/rpc/net.cpp
parentf96c7c4d91f3c09d26658bc9c15aa561689fa2d4 (diff)
net: Split resolving out of CSubNet
Diffstat (limited to 'src/rpc/net.cpp')
-rw-r--r--src/rpc/net.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rpc/net.cpp b/src/rpc/net.cpp
index c23becd4a9..58cf4a56e0 100644
--- a/src/rpc/net.cpp
+++ b/src/rpc/net.cpp
@@ -500,7 +500,7 @@ UniValue setban(const UniValue& params, bool fHelp)
netAddr = resolved;
}
else
- subNet = CSubNet(params[0].get_str());
+ LookupSubNet(params[0].get_str().c_str(), subNet);
if (! (isSubnet ? subNet.IsValid() : netAddr.IsValid()) )
throw JSONRPCError(RPC_CLIENT_NODE_ALREADY_ADDED, "Error: Invalid IP/Subnet");