mirror of
https://github.com/i2p/i2p.i2p.git
synced 2026-10-23 19:32:56 +00:00
Avoid publishing null IP when using forced address config
This commit is contained in:
1 parent
cc50d47376
commit
e0c0cc8b63
1 file changed
+5
@@ -980,6 +980,11 @@ public class NTCPTransport extends TransportImpl {
|
||||
_log.info("old: " + ohost + " config: " + name + " auto: " + enabled + " ssuOK? " + ssuOK);
|
||||
if (enabled.equals("always") ||
|
||||
(Boolean.parseBoolean(enabled) && ssuOK)) {
|
||||
if (!ssuOK) {
|
||||
if (_log.shouldLog(Log.WARN))
|
||||
_log.warn("null address with always config", new Exception());
|
||||
return;
|
||||
}
|
||||
// ip non-null
|
||||
String nhost = Addresses.toString(ip);
|
||||
if (_log.shouldLog(Log.INFO))
|
||||
|
||||
Reference in new issue
Block a user