From ec7f2ff9ed2c11692d92166bd4cf4ddd46c64932 Mon Sep 17 00:00:00 2001 From: xiphon Date: Wed, 2 Oct 2019 19:04:57 +0000 Subject: [PATCH] p2p: reject invalid rpc_port in peer lists --- src/p2p/net_node.inl | 2 ++ 1 file changed, 2 insertions(+) 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(); if (ipv4.ip() == 0) ignore = true; + else if (ipv4.port() == be.rpc_port) + ignore = true; } if (ignore) {