From f208d9849292a82136155f5a633361beb3b0e024 Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Fri, 1 Jan 2021 12:30:14 +0000 Subject: [PATCH] p2p: ignore empty IP from DNS block list ie, if the list ends in ; --- src/p2p/net_node.inl | 2 ++ 1 file changed, 2 insertions(+) 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 parsed_addr = net::get_network_address(ip, 0); if (!parsed_addr) {