aboutsummaryrefslogtreecommitdiff
path: root/src/p2p
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2021-02-15 21:45:46 -0500
committerluigi1111 <luigi1111w@gmail.com>2021-02-15 21:45:46 -0500
commit7c6db2fed190d6efe87c92f675d5100718a0f410 (patch)
tree1ff5f94fe6788548d31792365ba8f62d66d06db8 /src/p2p
parentMerge pull request #7242 (diff)
parentp2p: ignore empty IP from DNS block list (diff)
downloadmonero-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.inl2
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)
{