Skip to content

[Bug]: Adding new domains to the source code does not update the app #13

@Moulick

Description

@Moulick

Version

Commit c4b0d71

Installation Method

Built from source

VPN Type

Other

Bug Description

While making the pull request number #11 , I had to trash all the config of the app to get the app to use the new domains from RouteManager.swift for routes.

When I exported the config from the app via the Export button that's then I realized that the app has stored the domains in the user config and was not taking the list of domains from the source code!

Expected Behavior

Adding new domains to RouteManager.swift should take effect when running the app via make run.
The user config should not store the domains for the inbuilt services. For people who have already installed this app, the existing user config stored also needs to be cleaned/adjusted to remove the domains of the inbuilt doamins when they run the latest version.

Steps to Reproduce

  1. Install public version of the app
  2. Enable OpenAI
  3. Shutdown the app and delete the app
  4. Update the source code to add new domains
  5. run via make run
  6. Observe that the app still only uses the old domains
  7. Shutdown app
  8. Delete ~/Library/Application Support/VPNBypass ~/Library/Preferences/com.geiserx.vpn-bypass.plist ~/Library/Caches/com.geiserx.vpn-bypass
  9. Run again via make run
  10. Now the app has all the new domains!

Environment

MacOS Tahoe 26.3
Apple Silicon
Helper installed : Yes

Checklist

  • I have searched existing issues to ensure this isn't a duplicate
  • I have tried restarting the app

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions