From cb069d0a4293c9331d76194ce3cec26fc4981daf Mon Sep 17 00:00:00 2001 From: moneromooo Date: Tue, 27 Oct 2020 22:33:11 +0000 Subject: p2p: remove banned peers from the white list --- src/p2p/net_node.inl | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') 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."); -- cgit v1.2.3