aboutsummaryrefslogtreecommitdiffstats
path: root/WireGuard/WireGuard/Tunnel/ActivateOnDemandSetting.swift
diff options
context:
space:
mode:
Diffstat (limited to 'WireGuard/WireGuard/Tunnel/ActivateOnDemandSetting.swift')
-rw-r--r--WireGuard/WireGuard/Tunnel/ActivateOnDemandSetting.swift4
1 files changed, 2 insertions, 2 deletions
diff --git a/WireGuard/WireGuard/Tunnel/ActivateOnDemandSetting.swift b/WireGuard/WireGuard/Tunnel/ActivateOnDemandSetting.swift
index 0aeda6f9..90710983 100644
--- a/WireGuard/WireGuard/Tunnel/ActivateOnDemandSetting.swift
+++ b/WireGuard/WireGuard/Tunnel/ActivateOnDemandSetting.swift
@@ -63,9 +63,9 @@ extension ActivateOnDemandSetting {
}
self.activateOnDemandOption = activateOnDemandOption
if activateOnDemandOption == .none {
- self.isActivateOnDemandEnabled = false
+ isActivateOnDemandEnabled = false
} else {
- self.isActivateOnDemandEnabled = tunnelProviderManager.isOnDemandEnabled
+ isActivateOnDemandEnabled = tunnelProviderManager.isOnDemandEnabled
}
}
}