diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2021-01-01 12:30:14 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2021-01-01 12:30:45 +0000 |
commit | f208d9849292a82136155f5a633361beb3b0e024 (patch) | |
tree | bee5b612bc509b6179a421839eaa98010aaa90aa /src/p2p | |
parent | Merge pull request #7221 (diff) | |
download | monero-f208d9849292a82136155f5a633361beb3b0e024.tar.xz |
p2p: ignore empty IP from DNS block list
ie, if the list ends in ;
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 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) { |