Merge pull request #7252

f208d98 p2p: ignore empty IP from DNS block list (moneromooo-monero)
This commit is contained in:
luigi1111 2021-02-15 21:45:46 -05:00
commit 7c6db2fed1
No known key found for this signature in database
GPG Key ID: F4ACA0183641E010

View File

@ -2025,6 +2025,8 @@ namespace nodetool
boost::split(ips, record, boost::is_any_of(";")); boost::split(ips, record, boost::is_any_of(";"));
for (const auto &ip: ips) for (const auto &ip: ips)
{ {
if (ip.empty())
continue;
const expect<epee::net_utils::network_address> parsed_addr = net::get_network_address(ip, 0); const expect<epee::net_utils::network_address> parsed_addr = net::get_network_address(ip, 0);
if (!parsed_addr) if (!parsed_addr)
{ {