diff options
author | luigi1111 <luigi1111w@gmail.com> | 2021-02-15 21:45:46 -0500 |
---|---|---|
committer | luigi1111 <luigi1111w@gmail.com> | 2021-02-15 21:45:46 -0500 |
commit | 7c6db2fed190d6efe87c92f675d5100718a0f410 (patch) | |
tree | 1ff5f94fe6788548d31792365ba8f62d66d06db8 /src/p2p | |
parent | Merge pull request #7242 (diff) | |
parent | p2p: ignore empty IP from DNS block list (diff) | |
download | monero-7c6db2fed190d6efe87c92f675d5100718a0f410.tar.xz |
Merge pull request #7252
f208d98 p2p: ignore empty IP from DNS block list (moneromooo-monero)
Diffstat (limited to 'src/p2p')
-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 63ac2f1bd..407f147f6 100644 --- a/src/p2p/net_node.inl +++ b/src/p2p/net_node.inl @@ -2025,6 +2025,8 @@ namespace nodetool boost::split(ips, record, boost::is_any_of(";")); for (const auto &ip: ips) { + if (ip.empty()) + continue; const expect<epee::net_utils::network_address> parsed_addr = net::get_network_address(ip, 0); if (!parsed_addr) { |