I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit e0c0cc8b authored by zzz's avatar zzz
Browse files

Avoid publishing null IP when using forced address config

parent cc50d473
No related branches found
No related tags found
No related merge requests found
......@@ -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))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment