diff options
| author | Cory Fields <[email protected]> | 2016-05-31 15:50:24 -0400 |
|---|---|---|
| committer | Cory Fields <[email protected]> | 2016-07-31 14:01:43 -0400 |
| commit | b6c3ff3daed432e71d1c5bfe2357c4bb9fdc862a (patch) | |
| tree | 102e1236181b8fd21235e31154c160cc9a393757 /src/rpc/net.cpp | |
| parent | net: Split resolving out of CService (diff) | |
| download | discoin-b6c3ff3daed432e71d1c5bfe2357c4bb9fdc862a.tar.xz discoin-b6c3ff3daed432e71d1c5bfe2357c4bb9fdc862a.zip | |
net: Split resolving out of CSubNet
Diffstat (limited to 'src/rpc/net.cpp')
| -rw-r--r-- | src/rpc/net.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rpc/net.cpp b/src/rpc/net.cpp index c23becd4a..58cf4a56e 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"); |