|
|
@ -807,6 +807,7 @@ void RPCConsole::banSelectedNode(int bantime) |
|
|
|
SplitHostPort(nStr, port, addr); |
|
|
|
SplitHostPort(nStr, port, addr); |
|
|
|
|
|
|
|
|
|
|
|
CNode::Ban(CNetAddr(addr), BanReasonManuallyAdded, bantime); |
|
|
|
CNode::Ban(CNetAddr(addr), BanReasonManuallyAdded, bantime); |
|
|
|
|
|
|
|
DumpBanlist(); // store banlist to disk
|
|
|
|
bannedNode->fDisconnect = true; |
|
|
|
bannedNode->fDisconnect = true; |
|
|
|
|
|
|
|
|
|
|
|
clearSelectedNode(); |
|
|
|
clearSelectedNode(); |
|
|
@ -826,6 +827,7 @@ void RPCConsole::unbanSelectedNode() |
|
|
|
if (possibleSubnet.IsValid()) |
|
|
|
if (possibleSubnet.IsValid()) |
|
|
|
{ |
|
|
|
{ |
|
|
|
CNode::Unban(possibleSubnet); |
|
|
|
CNode::Unban(possibleSubnet); |
|
|
|
|
|
|
|
DumpBanlist(); // store banlist to disk
|
|
|
|
clientModel->getBanTableModel()->refresh(); |
|
|
|
clientModel->getBanTableModel()->refresh(); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|