mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-26 17:32:33 +00:00
p2p: reject invalid rpc_port in peer lists
This commit is contained in:
parent
b8643752c1
commit
ec7f2ff9ed
1 changed files with 2 additions and 0 deletions
|
@ -1857,6 +1857,8 @@ namespace nodetool
|
||||||
const epee::net_utils::ipv4_network_address &ipv4 = na.as<const epee::net_utils::ipv4_network_address>();
|
const epee::net_utils::ipv4_network_address &ipv4 = na.as<const epee::net_utils::ipv4_network_address>();
|
||||||
if (ipv4.ip() == 0)
|
if (ipv4.ip() == 0)
|
||||||
ignore = true;
|
ignore = true;
|
||||||
|
else if (ipv4.port() == be.rpc_port)
|
||||||
|
ignore = true;
|
||||||
}
|
}
|
||||||
if (ignore)
|
if (ignore)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue