mirror of
https://github.com/passepartoutvpn/passepartout-apple.git
synced 2025-01-22 00:22:26 +00:00
Do not require purchase for empty on-demand rules (#1089)
Major issue with migrated profiles with the "Excluding" policy. Existing users are being opted into an unnecessary purchase.
This commit is contained in:
parent
bb49ccaffb
commit
1414080ea9
@ -49,7 +49,11 @@ extension OnDemandModule.Builder: AppFeatureRequiring {
|
||||
guard isEnabled else {
|
||||
return []
|
||||
}
|
||||
return policy != .any ? [.onDemand] : []
|
||||
// empty rules require no purchase
|
||||
if !withMobileNetwork && !withEthernetNetwork && !withSSIDs.map(\.value).contains(true) {
|
||||
return []
|
||||
}
|
||||
return [.onDemand]
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user