Skip to content

Conversation

@fortuna
Copy link
Collaborator

@fortuna fortuna commented Apr 21, 2025

Not a full PR at this point, but I wanted to record how this API could look like on Android and iOS.

@fortuna fortuna changed the title Fortuna tun cleanup(client): Clean up Go VPN APIs Apr 21, 2025
@fortuna fortuna requested a review from jyyi1 April 21, 2025 23:14
"failed to connect the tunnel");
}
startForegroundWithNotification(config.name);
storeActiveTunnel(config, remoteUdpForwardingEnabled);
Copy link
Contributor

Choose a reason for hiding this comment

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

This is where we store the UDP connectivity state for resuming a connection. Do we need to store it somewhere in the new arch?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I was thinking we should check it again. I don't think it makes sense to save this, since we check on network changes.

// the connection due to a network error, as network may not be ready.
final TCPAndUDPConnectivityResult connResult = checkServerConnectivity(client);
if (connResult.getTCPError() != null) {
deviceConnError = remoteDevice.HasConnectivity();
Copy link
Contributor

Choose a reason for hiding this comment

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

Probably TestConnectivity would be a better name. HasConnectivity sounds like it will return a bool instead of an Error.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Sounds good.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants