aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2021-01-01 12:30:14 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2021-01-01 12:30:45 +0000
commitf208d9849292a82136155f5a633361beb3b0e024 (patch)
treebee5b612bc509b6179a421839eaa98010aaa90aa /src
parentMerge pull request #7221 (diff)
downloadmonero-f208d9849292a82136155f5a633361beb3b0e024.tar.xz
p2p: ignore empty IP from DNS block list
ie, if the list ends in ;
Diffstat (limited to 'src')
-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 bf053f0f2..229dea0b5 100644
--- a/src/p2p/net_node.inl
+++ b/src/p2p/net_node.inl
@@ -2014,6 +2014,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)
{