mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-03-21 16:49:10 +01:00
check if local address exists
This commit is contained in:
parent
81d383c99e
commit
29872fc003
1 changed files with 1 additions and 1 deletions
|
@ -814,7 +814,7 @@ namespace transport
|
||||||
{
|
{
|
||||||
relayTag = introducer.iTag;
|
relayTag = introducer.iTag;
|
||||||
addr = address->IsV6 () ? r->GetSSU2V6Address () : r->GetSSU2V4Address ();
|
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))
|
!i2p::transport::transports.IsInReservedRange(addr->host))
|
||||||
break;
|
break;
|
||||||
else
|
else
|
||||||
|
|
Loading…
Add table
Reference in a new issue