Transport: Don't repeatedly publish RI if IPv6-only but not configured IPv6-only

This commit is contained in:
zzz
2018-12-08 17:28:54 +00:00
parent d382f1214e
commit 2200cf6627

View File

@ -2312,7 +2312,7 @@ public class UDPTransport extends TransportImpl implements TimedWeightedPriority
RouterAddress local = new RouterAddress(STYLE, localOpts, DEFAULT_COST);
replaceCurrentExternalAddress(local, isIPv6);
}
if (hasCurrentAddress()) {
if (getCurrentAddress(false) != null) {
// We must remove current address, otherwise the user will see
// "firewalled with inbound NTCP enabled" warning in console.
// Remove the IPv4 address only