Browse Source

check if local address exists

pull/2072/head
orignal 6 months ago
parent
commit
29872fc003
  1. 2
      libi2pd/SSU2.cpp

2
libi2pd/SSU2.cpp

@ -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…
Cancel
Save