Skip to content

Conversation

doromaraujo
Copy link
Collaborator

@doromaraujo doromaraujo commented Sep 22, 2025

This PR adds toggle switches on the resources/networks tab to allow users to select/deselect network resources.

When either a network change is detected from the server or a resource is selected/deselected, a new tun file descriptor is obtained from the service side and sent to the engine to be renewed internally with the new route definitions.

The engine is also notified when the user toggles a network resource accordingly.

The marshalled routes are being sent from go client separated
by semicolons when provided in the IFace configureInterface
callback, but separated by commas on onNetworkChanged call
Now VPNService adds an OnRouteChanged listener
to NetworkChangeNotifier, which queues TUN renewal via a
looper thread
Also remove usage of ServiceAccessor from NetworksFragment
Adapter calls a switch toggle handler defined in
NetworksFragment. Fragment, through its view model, reaches
all the way to the engine to call the go client functions.
with read/write access on android's context
@doromaraujo doromaraujo changed the title allow selecting routes allow users to select/deselect network resources Oct 8, 2025
@doromaraujo doromaraujo marked this pull request as ready for review October 8, 2025 15:51
To group android client's file paths parameters, such as
configurationFilePath and stateFilePath
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.

1 participant