p2p: remove banned peers from the white list

This commit is contained in:
moneromooo 2020-10-27 22:33:11 +00:00 committed by moneromooo-monero
parent 4d855fcca7
commit 5090cdc9f5
No known key found for this signature in database
GPG Key ID: 686F07454D6CEFC3
1 changed files with 4 additions and 0 deletions

View File

@ -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.");