-
Notifications
You must be signed in to change notification settings - Fork 1.4k
cleanup(client): Clean up Go VPN APIs #2480
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
base: master
Are you sure you want to change the base?
Conversation
| "failed to connect the tunnel"); | ||
| } | ||
| startForegroundWithNotification(config.name); | ||
| storeActiveTunnel(config, remoteUdpForwardingEnabled); |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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(); |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds good.
Not a full PR at this point, but I wanted to record how this API could look like on Android and iOS.