diff options
author | xiphon <xiphon@protonmail.com> | 2019-10-02 19:04:57 +0000 |
---|---|---|
committer | xiphon <xiphon@protonmail.com> | 2019-10-02 19:04:57 +0000 |
commit | ec7f2ff9ed2c11692d92166bd4cf4ddd46c64932 (patch) | |
tree | f4d7341cf4962b4b5300e2b27e8c9bbb0234b259 /src | |
parent | Merge pull request #5549 (diff) | |
download | monero-ec7f2ff9ed2c11692d92166bd4cf4ddd46c64932.tar.xz |
p2p: reject invalid rpc_port in peer lists
Diffstat (limited to '')
-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 24c87cef8..87b11e723 100644 --- a/src/p2p/net_node.inl +++ b/src/p2p/net_node.inl @@ -1857,6 +1857,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 (ignore) { |