check if local address exists

This commit is contained in:
orignal 2024-06-10 17:58:19 -04:00
parent 81d383c99e
commit 29872fc003

View File

@ -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