Fix in-app eligibility in VPN (#440)
This commit is contained in:
parent
4c4876c5f7
commit
239d3e6853
|
@ -97,6 +97,9 @@ private extension AppContext {
|
|||
coreContext.vpnManager.isOnDemandRulesSupported = {
|
||||
self.isEligibleForOnDemandRules()
|
||||
}
|
||||
coreContext.vpnManager.isNetworkSettingsSupported = {
|
||||
self.isEligibleForNetworkSettings()
|
||||
}
|
||||
|
||||
coreContext.vpnManager.currentState.$vpnStatus
|
||||
.removeDuplicates()
|
||||
|
|
|
@ -76,8 +76,8 @@ public final class VPNManager: ObservableObject {
|
|||
self.profileManager = profileManager
|
||||
self.providerManager = providerManager
|
||||
self.strategy = strategy
|
||||
isNetworkSettingsSupported = { true }
|
||||
isOnDemandRulesSupported = { true }
|
||||
isNetworkSettingsSupported = { false }
|
||||
isOnDemandRulesSupported = { false }
|
||||
|
||||
currentState = ObservableVPNState()
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue