mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-02-02 02:54:01 +01: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 a new issue