aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxiphon <xiphon@protonmail.com>2019-10-02 19:04:57 +0000
committerxiphon <xiphon@protonmail.com>2019-10-02 19:04:57 +0000
commitec7f2ff9ed2c11692d92166bd4cf4ddd46c64932 (patch)
treef4d7341cf4962b4b5300e2b27e8c9bbb0234b259
parentMerge pull request #5549 (diff)
downloadmonero-ec7f2ff9ed2c11692d92166bd4cf4ddd46c64932.tar.xz
p2p: reject invalid rpc_port in peer lists
Diffstat (limited to '')
-rw-r--r--src/p2p/net_node.inl2
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)
{