forked from I2P_Developers/i2p.i2p
Merge branch '435-ntcp2-firewalled' into 'master'
NTCP2: Fix updating address on transition to firewalled (Gitlab #435) Closes #435 See merge request i2p-hackers/i2p.i2p!116
This commit is contained in:
@ -1789,6 +1789,8 @@ public class NTCPTransport extends TransportImpl {
|
||||
// do not restart on transition to firewalled
|
||||
if (ip != null || port > 0)
|
||||
restartListening(newAddr, isIPv6);
|
||||
else
|
||||
replaceAddress(newAddr);
|
||||
if (_log.shouldLog(Log.WARN))
|
||||
_log.warn("Updating NTCP Address (ipv6? " + isIPv6 + ") with " + newAddr);
|
||||
return true;
|
||||
|
Reference in New Issue
Block a user