mirror of
https://github.com/passepartoutvpn/passepartout-apple.git
synced 2025-02-16 12:52:11 +00:00
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 = {
|
coreContext.vpnManager.isOnDemandRulesSupported = {
|
||||||
self.isEligibleForOnDemandRules()
|
self.isEligibleForOnDemandRules()
|
||||||
}
|
}
|
||||||
|
coreContext.vpnManager.isNetworkSettingsSupported = {
|
||||||
|
self.isEligibleForNetworkSettings()
|
||||||
|
}
|
||||||
|
|
||||||
coreContext.vpnManager.currentState.$vpnStatus
|
coreContext.vpnManager.currentState.$vpnStatus
|
||||||
.removeDuplicates()
|
.removeDuplicates()
|
||||||
|
@ -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()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user