-
Notifications
You must be signed in to change notification settings - Fork 480
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
android: fix vpn #232
android: fix vpn #232
Conversation
-Move most of prepare and establish VPN logic out of Go into Android -Fix prepareVPN argument to use request codes to differentiate sign in and prepare VPN -Fix missing adapter implementation (setMtu) Updates tailscale/corp#18202 Signed-off-by: kari-ts <[email protected]>
@@ -120,32 +120,10 @@ type InputStream interface { | |||
// The below are global callbacks that allow the Java application to notify Go | |||
// of various state changes. | |||
|
|||
func OnVPNPrepared() { |
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.
Nice!
func RequestVPN(service IPNService) { | ||
onVPNRequested <- service | ||
} | ||
|
||
func ServiceDisconnect(service IPNService) { | ||
onDisconnect <- service | ||
} | ||
|
||
func OnActivityResult(reqCode, resCode int, idToken string) { |
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.
Nice!
// TODO: send null Google token | ||
break; | ||
} | ||
// TODO: send Google token |
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.
Are we keeping Google Signin, or are we switching just to browser-based sign in because of fast user switching?
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.
Browser based, but I do want to investigate what we were using the google token for and make sure that we don't break anything by removing it
-Move most of prepare and establish VPN logic out of Go into Android
-Fix prepareVPN argument to use request codes to differentiate sign in and prepare VPN
-Fix missing adapter implementation (setMtu)
Updates tailscale/corp#18202