aboutsummaryrefslogtreecommitdiff
path: root/src/qt/rpcconsole.cpp
diff options
context:
space:
mode:
authorCory Fields <[email protected]>2016-05-31 13:05:52 -0400
committerCory Fields <[email protected]>2016-07-31 13:24:07 -0400
commit31d6b1d5f0414d8b356d8cb9c99961d8a04d6c0a (patch)
treee1044a96d479c66c639528276d54f674b5103ae8 /src/qt/rpcconsole.cpp
parentMerge #8238: [WIP][depends] ZeroMQ 4.1.5 && ZMQ on Windows (diff)
downloaddiscoin-31d6b1d5f0414d8b356d8cb9c99961d8a04d6c0a.tar.xz
discoin-31d6b1d5f0414d8b356d8cb9c99961d8a04d6c0a.zip
net: Split resolving out of CNetAddr
Diffstat (limited to 'src/qt/rpcconsole.cpp')
-rw-r--r--src/qt/rpcconsole.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/qt/rpcconsole.cpp b/src/qt/rpcconsole.cpp
index 650ff8b00..e7df4f2df 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();