aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2020-11-29 01:51:41 -0600
committerluigi1111 <luigi1111w@gmail.com>2020-11-29 01:51:41 -0600
commit9a4d813136fcc26e3ddec0b3db563fbe6c93fba7 (patch)
tree36cf387a353313e6ad8ce4a957d5fde372938e56
parentMerge pull request #6937 (diff)
parentp2p: remove banned peers from the white list (diff)
downloadmonero-9a4d813136fcc26e3ddec0b3db563fbe6c93fba7.tar.xz
Merge pull request #6943
cb069d0 p2p: remove banned peers from the white list (moneromooo-monero)
-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 055d3507e..73c37e284 100644
--- a/src/p2p/net_node.inl
+++ b/src/p2p/net_node.inl
@@ -246,6 +246,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.");