Skip to content

fix: avoid automatically reconfiguring vpn #218

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

Merged
merged 1 commit into from
Aug 6, 2025

Conversation

ethanndickson
Copy link
Member

@ethanndickson ethanndickson commented Aug 6, 2025

I added this block of code as a convenience, during the time we were using a workaround for the XPC issue that involved deleting and reinserting the network extension when updated. This block of code meant the user didn't need to click back into the tray menu to get the VPN configuration prompt to appear, it would just appear as soon as necessary.

However, this introduces a race. If the app loads the VPN unconfigured view before the task that checks for an existing VPN configuration finishes (this task runs as part of applicationDidFinishLaunching), the user will be displayed the prompt to reconfigure, even if a valid configuration already exists.

Since we're not using the aforementioned workaround, this convenience is no longer necessary, and can be removed as the race is more likely to be an issue.

Copy link
Member Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@ethanndickson ethanndickson marked this pull request as ready for review August 6, 2025 09:12
@ethanndickson ethanndickson changed the title fix: avoid automatically reconfiguring vpn config fix: avoid automatically reconfiguring vpn Aug 6, 2025
Copy link
Member Author

ethanndickson commented Aug 6, 2025

Merge activity

  • Aug 6, 9:14 AM UTC: A user started a stack merge that includes this pull request via Graphite.
  • Aug 6, 9:14 AM UTC: @ethanndickson merged this pull request with Graphite.

@ethanndickson ethanndickson merged commit de4b0e5 into main Aug 6, 2025
4 checks passed
@ethanndickson ethanndickson deleted the ethan/avoid-automatic-reconfigure branch August 6, 2025 09:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants