aboutsummaryrefslogtreecommitdiff
path: root/src/p2p
diff options
context:
space:
mode:
authormoneromooo <moneromoo@nowhere.nowhere.nowhere>2020-10-27 22:33:11 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2020-10-27 22:35:14 +0000
commitcb069d0a4293c9331d76194ce3cec26fc4981daf (patch)
tree18574dbf6ca59a00495180fbc216d515c74204ab /src/p2p
parentMerge pull request #6902 (diff)
downloadmonero-cb069d0a4293c9331d76194ce3cec26fc4981daf.tar.xz
p2p: remove banned peers from the white list
Diffstat (limited to 'src/p2p')
-rw-r--r--src/p2p/net_node.inl4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/p2p/net_node.inl b/src/p2p/net_node.inl
index aa16e93d5..c1d61eea2 100644
--- a/src/p2p/net_node.inl
+++ b/src/p2p/net_node.inl
@@ -245,6 +245,10 @@ namespace nodetool
zone.second.m_net_server.get_config_object().close(c);
conns.clear();
+
+ peerlist_entry pe{};
+ pe.adr = addr;
+ zone.second.m_peerlist.remove_from_peer_white(pe);
}
MCLOG_CYAN(el::Level::Info, "global", "Host " << addr.host_str() << " blocked.");