diff options
author | Cory Fields <cory-nospam-@coryfields.com> | 2016-05-31 13:05:52 -0400 |
---|---|---|
committer | Cory Fields <cory-nospam-@coryfields.com> | 2016-07-31 13:24:07 -0400 |
commit | 31d6b1d5f0414d8b356d8cb9c99961d8a04d6c0a (patch) | |
tree | e1044a96d479c66c639528276d54f674b5103ae8 /src/qt/rpcconsole.cpp | |
parent | 6caf3ee061a86d89b965dc8a61a95d1f34015805 (diff) |
net: Split resolving out of CNetAddr
Diffstat (limited to 'src/qt/rpcconsole.cpp')
-rw-r--r-- | src/qt/rpcconsole.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/qt/rpcconsole.cpp b/src/qt/rpcconsole.cpp index 650ff8b00d..e7df4f2dfa 100644 --- a/src/qt/rpcconsole.cpp +++ b/src/qt/rpcconsole.cpp @@ -898,7 +898,10 @@ void RPCConsole::banSelectedNode(int bantime) int port = 0; SplitHostPort(nStr, port, addr); - CNode::Ban(CNetAddr(addr), BanReasonManuallyAdded, bantime); + CNetAddr resolved; + if(!LookupHost(addr.c_str(), resolved, false)) + return; + CNode::Ban(resolved, BanReasonManuallyAdded, bantime); clearSelectedNode(); clientModel->getBanTableModel()->refresh(); |