Fix in-app eligibility in VPN (#440)

This commit is contained in:
Davide De Rosa 2023-12-23 07:59:23 +01:00 committed by GitHub
parent 4c4876c5f7
commit 239d3e6853
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View File

@ -97,6 +97,9 @@ private extension AppContext {
coreContext.vpnManager.isOnDemandRulesSupported = { coreContext.vpnManager.isOnDemandRulesSupported = {
self.isEligibleForOnDemandRules() self.isEligibleForOnDemandRules()
} }
coreContext.vpnManager.isNetworkSettingsSupported = {
self.isEligibleForNetworkSettings()
}
coreContext.vpnManager.currentState.$vpnStatus coreContext.vpnManager.currentState.$vpnStatus
.removeDuplicates() .removeDuplicates()

View File

@ -76,8 +76,8 @@ public final class VPNManager: ObservableObject {
self.profileManager = profileManager self.profileManager = profileManager
self.providerManager = providerManager self.providerManager = providerManager
self.strategy = strategy self.strategy = strategy
isNetworkSettingsSupported = { true } isNetworkSettingsSupported = { false }
isOnDemandRulesSupported = { true } isOnDemandRulesSupported = { false }
currentState = ObservableVPNState() currentState = ObservableVPNState()
} }