Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rework "Trusted networks" to be a generic "On-demand" #333

Merged
merged 4 commits into from
Jul 23, 2023

Conversation

keeshux
Copy link
Member

@keeshux keeshux commented Jul 22, 2023

Extend the feature by also providing a complementary "include" policy, i.e. activate the VPN only on the specified networks. "Trusted networks" was only providing the "exclude" counterpart, i.e. except the specified networks.

Closes #119

@keeshux keeshux added the enhancement New feature or request label Jul 22, 2023
@keeshux keeshux added this to the 2.2.0 milestone Jul 22, 2023
@keeshux keeshux self-assigned this Jul 22, 2023
@keeshux keeshux merged commit e0dbca2 into master Jul 23, 2023
1 check passed
@keeshux keeshux deleted the feature/on-demand branch July 23, 2023 06:44
public var policy: Policy = .excluding

public var withSSIDs: [String: Bool] = [:]

public var withOtherNetworks: Set<OtherNetwork> = []

public var disconnectsIfNotMatching = true
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dropping this prevented downgrade from 2.2.0

See #338 for explanations.

keeshux added a commit that referenced this pull request Jul 30, 2023
In #333, the non-optional field `disconnectsIfNotMatching` was removed
completely. Therefore, downgrading from 2.2.0 may lose profiles due to
the missing required field.

Mitigate the issue by restoring the field as optional, even if it's
unused, for the sake of not breaking profile serialization until the
2.2.0 release. Remove the deprecated field after that.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Convert trusted networks to on-demand activation
1 participant