diff options
author | Lee Clagett <code@leeclagett.com> | 2020-12-29 19:58:53 -0500 |
---|---|---|
committer | Lee Clagett <code@leeclagett.com> | 2020-12-29 19:58:53 -0500 |
commit | 7d67a2dde0d2547e19650f5c6fa33d54b3f8b14d (patch) | |
tree | e90a9666400d19545199b6ed46be34c365cb5c1b /src/cryptonote_protocol/cryptonote_protocol_handler.inl | |
parent | Merge pull request #7222 (diff) | |
download | monero-7d67a2dde0d2547e19650f5c6fa33d54b3f8b14d.tar.xz |
Add aggressive restrictions to pre-handshake p2p buffer limit
Diffstat (limited to 'src/cryptonote_protocol/cryptonote_protocol_handler.inl')
-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 c76e5628d..1a4c6d033 100644 --- a/src/cryptonote_protocol/cryptonote_protocol_handler.inl +++ b/src/cryptonote_protocol/cryptonote_protocol_handler.inl @@ -2634,6 +2634,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)) |