mirror of
https://codeberg.org/nahuhh/wownero
synced 2026-03-05 06:07:35 -05:00
p2p: ignore empty IP from DNS block list
ie, if the list ends in ;
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user