mirror of
https://github.com/monero-project/monero.git
synced 2024-11-18 00:37:43 +00:00
Merge pull request #7252
f208d98
p2p: ignore empty IP from DNS block list (moneromooo-monero)
This commit is contained in:
commit
7c6db2fed1
1 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue