Skip to content

Commit 62451e6

Browse files
committed
FIX: Repair should execute even if disconnected
1 parent c7a675b commit 62451e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

LockdowniOS/FirewallRepair.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ enum FirewallRepair {
9797
DDLogInfo("Repair \(context): refreshed manager")
9898
DDLogInfo("Repair \(context): userWantsFirewallEnabled \(getUserWantsFirewallEnabled())")
9999
DDLogInfo("Repair \(context): firewallStatus \(FirewallController.shared.status())")
100-
if getUserWantsFirewallEnabled() && (FirewallController.shared.status() == .connected || FirewallController.shared.status() == .invalid) {
100+
if getUserWantsFirewallEnabled() && (FirewallController.shared.status() == .connected || FirewallController.shared.status() == .invalid || FirewallController.shared.status() == .disconnected) {
101101
DDLogInfo("Repair \(context): user wants enabled")
102102
if (appHasJustBeenUpgradedOrIsNewInstall()) {
103103
DDLogInfo("Repair \(context): APP UPGRADED, REFRESHING DEFAULT BLOCK LISTS, WHITELISTS, RESTARTING FIREWALL")

0 commit comments

Comments
 (0)