diff options
author | luigi1111 <luigi1111w@gmail.com> | 2019-10-16 13:44:25 -0500 |
---|---|---|
committer | luigi1111 <luigi1111w@gmail.com> | 2019-10-16 13:44:25 -0500 |
commit | 017baeeab5acaadd52cfff855ab7316f1d070fd7 (patch) | |
tree | f5220c0d92a44b863230a56daae2011790d26917 /src/p2p | |
parent | Merge pull request #5954 (diff) | |
parent | p2p: reject invalid rpc_port in peer lists (diff) | |
download | monero-017baeeab5acaadd52cfff855ab7316f1d070fd7.tar.xz |
Merge pull request #5956
ec7f2ff p2p: reject invalid rpc_port in peer lists (xiphon)
Diffstat (limited to 'src/p2p')
-rw-r--r-- | src/p2p/net_node.inl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/p2p/net_node.inl b/src/p2p/net_node.inl index f216eee51..5fccdca5a 100644 --- a/src/p2p/net_node.inl +++ b/src/p2p/net_node.inl @@ -1864,6 +1864,8 @@ namespace nodetool const epee::net_utils::ipv4_network_address &ipv4 = na.as<const epee::net_utils::ipv4_network_address>(); if (ipv4.ip() == 0) ignore = true; + else if (ipv4.port() == be.rpc_port) + ignore = true; } if (be.pruning_seed && (be.pruning_seed < tools::make_pruning_seed(1, CRYPTONOTE_PRUNING_LOG_STRIPES) || be.pruning_seed > tools::make_pruning_seed(1ul << CRYPTONOTE_PRUNING_LOG_STRIPES, CRYPTONOTE_PRUNING_LOG_STRIPES))) ignore = true; |