mirror of
https://github.com/PurpleI2P/i2pd
synced 2024-11-09 15:50:26 +03:00
check if local address exists
This commit is contained in:
parent
81d383c99e
commit
29872fc003
@ -814,7 +814,7 @@ namespace transport
|
||||
{
|
||||
relayTag = introducer.iTag;
|
||||
addr = address->IsV6 () ? r->GetSSU2V6Address () : r->GetSSU2V4Address ();
|
||||
if (!addr->host.is_unspecified () && addr->port &&
|
||||
if (addr && !addr->host.is_unspecified () && addr->port &&
|
||||
!i2p::transport::transports.IsInReservedRange(addr->host))
|
||||
break;
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user