Merge pull request #5956
ec7f2ff
p2p: reject invalid rpc_port in peer lists (xiphon)
This commit is contained in:
commit
017baeeab5
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user