diff options
author | Cory Fields <cory-nospam-@coryfields.com> | 2016-05-31 15:50:24 -0400 |
---|---|---|
committer | Cory Fields <cory-nospam-@coryfields.com> | 2016-07-31 14:01:43 -0400 |
commit | b6c3ff3daed432e71d1c5bfe2357c4bb9fdc862a (patch) | |
tree | 102e1236181b8fd21235e31154c160cc9a393757 /src/init.cpp | |
parent | f96c7c4d91f3c09d26658bc9c15aa561689fa2d4 (diff) |
net: Split resolving out of CSubNet
Diffstat (limited to 'src/init.cpp')
-rw-r--r-- | src/init.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/init.cpp b/src/init.cpp index 77ecf05f1d..8b94e2dbfb 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -1083,7 +1083,8 @@ bool AppInit2(boost::thread_group& threadGroup, CScheduler& scheduler) if (mapArgs.count("-whitelist")) { BOOST_FOREACH(const std::string& net, mapMultiArgs["-whitelist"]) { - CSubNet subnet(net); + CSubNet subnet; + LookupSubNet(net.c_str(), subnet); if (!subnet.IsValid()) return InitError(strprintf(_("Invalid netmask specified in -whitelist: '%s'"), net)); CNode::AddWhitelistedRange(subnet); |