|
|
@ -352,7 +352,7 @@ namespace i2p |
|
|
|
if (!port) |
|
|
|
if (!port) |
|
|
|
{ |
|
|
|
{ |
|
|
|
for (const auto& address : *addresses) |
|
|
|
for (const auto& address : *addresses) |
|
|
|
if (address->port) |
|
|
|
if (address && address->port) |
|
|
|
{ |
|
|
|
{ |
|
|
|
newPort = address->port; |
|
|
|
newPort = address->port; |
|
|
|
break; |
|
|
|
break; |
|
|
@ -693,7 +693,7 @@ namespace i2p |
|
|
|
default: ; |
|
|
|
default: ; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
port = addr->port; |
|
|
|
if (addr) port = addr->port; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
if (!port) |
|
|
|
if (!port) |
|
|
|