diff options
author | Alexander Blair <snipa@jagtech.io> | 2021-01-01 22:35:59 -0800 |
---|---|---|
committer | Alexander Blair <snipa@jagtech.io> | 2021-01-01 22:35:59 -0800 |
commit | 16c780d5688c7931ca6f55537c9cc8c1d4abc3dd (patch) | |
tree | 9efba2d35c48d1f6b592d54211b1bd52bfed0a36 /src/cryptonote_protocol/cryptonote_protocol_handler.inl | |
parent | Merge pull request #7246 (diff) | |
parent | Add aggressive restrictions to pre-handshake p2p buffer limit (diff) | |
download | monero-16c780d5688c7931ca6f55537c9cc8c1d4abc3dd.tar.xz |
Merge pull request #7250
61b6e4cc6 Add aggressive restrictions to pre-handshake p2p buffer limit (Lee Clagett)
Diffstat (limited to '')
-rw-r--r-- | src/cryptonote_protocol/cryptonote_protocol_handler.inl | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cryptonote_protocol/cryptonote_protocol_handler.inl b/src/cryptonote_protocol/cryptonote_protocol_handler.inl index 0d88f680d..bd39077ae 100644 --- a/src/cryptonote_protocol/cryptonote_protocol_handler.inl +++ b/src/cryptonote_protocol/cryptonote_protocol_handler.inl @@ -2674,6 +2674,7 @@ skip: std::vector<std::pair<epee::net_utils::zone, boost::uuids::uuid>> fullConnections, fluffyConnections; m_p2p->for_each_connection([this, &exclude_context, &fullConnections, &fluffyConnections](connection_context& context, nodetool::peerid_type peer_id, uint32_t support_flags) { + // peer_id also filters out connections before handshake if (peer_id && exclude_context.m_connection_id != context.m_connection_id && context.m_remote_address.get_zone() == epee::net_utils::zone::public_) { if(m_core.fluffy_blocks_enabled() && (support_flags & P2P_SUPPORT_FLAG_FLUFFY_BLOCKS)) |