SSU: Fix transition out of IPv4 firewalled after UPnP success

This commit is contained in:
zzz
2021-03-03 07:06:42 -05:00
parent c6c2ee94a7
commit 64ebcea50a

View File

@@ -1022,7 +1022,7 @@ public class UDPTransport extends TransportImpl implements TimedWeightedPriority
} }
if (success && ip != null) { if (success && ip != null) {
if (ip.length == 4) { if (ip.length == 4) {
if (getExternalIP() != null && !isIPv4Firewalled()) if (getCurrentExternalAddress(false) != null && !isIPv4Firewalled())
setReachabilityStatus(Status.IPV4_OK_IPV6_UNKNOWN); setReachabilityStatus(Status.IPV4_OK_IPV6_UNKNOWN);
} else if (ip.length == 16) { } else if (ip.length == 16) {
boolean fwOld = _context.getBooleanProperty(PROP_IPV6_FIREWALLED); boolean fwOld = _context.getBooleanProperty(PROP_IPV6_FIREWALLED);