SSU: Fix persisting IPv6 firewalled state

This commit is contained in:
zzz
2021-03-22 12:02:36 -04:00
parent 86b49546c8
commit 64695a8060

View File

@@ -710,7 +710,7 @@ public class UDPTransport extends TransportImpl implements TimedWeightedPriority
public synchronized void shutdown() {
if (_haveIPv6Address) {
boolean fwOld = _context.getBooleanProperty(PROP_IPV6_FIREWALLED);
boolean fwNew = STATUS_IPV6_FW.contains(_reachabilityStatus);
boolean fwNew = STATUS_IPV6_FW_2.contains(_reachabilityStatus);
if (fwOld != fwNew)
_context.router().saveConfig(PROP_IPV6_FIREWALLED, Boolean.toString(fwNew));
}