diff options
author | luigi1111 <luigi1111w@gmail.com> | 2020-12-19 17:25:11 -0600 |
---|---|---|
committer | luigi1111 <luigi1111w@gmail.com> | 2020-12-19 17:25:11 -0600 |
commit | e0e2eb2bf5e63b782a64d910d420fb623edac1bc (patch) | |
tree | 6d7d7b9ff9eb02fa03cd9632683751019c4c8d04 | |
parent | Merge pull request #7142 (diff) | |
parent | p2p: ignore incoming peer list entries when we have them blocked (diff) | |
download | monero-e0e2eb2bf5e63b782a64d910d420fb623edac1bc.tar.xz |
Merge pull request #7144
a569483 p2p: ignore incoming peer list entries when we have them blocked (moneromooo-monero)
-rw-r--r-- | src/p2p/net_node.inl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/p2p/net_node.inl b/src/p2p/net_node.inl index 65db2615c..128d17155 100644 --- a/src/p2p/net_node.inl +++ b/src/p2p/net_node.inl @@ -2093,7 +2093,9 @@ namespace nodetool LOG_DEBUG_CC(context, "REMOTE PEERLIST: remote peerlist size=" << peerlist_.size()); LOG_TRACE_CC(context, "REMOTE PEERLIST: " << ENDL << print_peerlist_to_string(peerlist_)); - return m_network_zones.at(context.m_remote_address.get_zone()).m_peerlist.merge_peerlist(peerlist_, [this](const peerlist_entry &pe) { return !is_addr_recently_failed(pe.adr); }); + return m_network_zones.at(context.m_remote_address.get_zone()).m_peerlist.merge_peerlist(peerlist_, [this](const peerlist_entry &pe) { + return !is_addr_recently_failed(pe.adr) && is_remote_host_allowed(pe.adr); + }); } //----------------------------------------------------------------------------------- template<class t_payload_net_handler> |