mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-08-15 01:03:23 +00:00
p2p: ignore empty IP from DNS block list
ie, if the list ends in ;
This commit is contained in:
parent
a1eca8ca7e
commit
f208d98492
1 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue