diff options
author | luigi1111 <luigi1111w@gmail.com> | 2020-11-03 11:22:27 -0600 |
---|---|---|
committer | luigi1111 <luigi1111w@gmail.com> | 2020-11-03 11:22:27 -0600 |
commit | 9f68111b692356da7a6856046f3ece5a3f1b6b1f (patch) | |
tree | 044b229f430968b64cf06127011450dec5aa2118 | |
parent | Merge pull request #6963 (diff) | |
parent | p2p: remove banned peers from the white list (diff) | |
download | monero-9f68111b692356da7a6856046f3ece5a3f1b6b1f.tar.xz |
Merge pull request #6964
5090cdc p2p: remove banned peers from the white list (moneromooo-monero)
-rw-r--r-- | src/p2p/net_node.inl | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/p2p/net_node.inl b/src/p2p/net_node.inl index a830c1023..f8cba41aa 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."); |