You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tailscale-android/libtailscale
kari-ts 29e3c187c2
android: stop tailscaled when VPN has been revoked (#480)
-add new Ipn UI state 'Stopping' to handle the case where the VPN is no longer active and a request to stop Tailscale has been issued (but is not complete yet) and use for optimistic UI
-when VPN has been revoked, stop tailscaled and set the state to Stopping
-this fixes the race condition where when we tell tailscaled to stop, stopping races against the netmap state updating as a result of the VPN being revoked
-add isActive state and use instead of isPrepared for UI showing whether we are connected - we were previously using isPrepared as a proxy for connection, but sometimes the VPN has been prepared but is not active (eg when VPN permissions have been given and VPN has been connected previously, but has been revoked)
-refactor network callbacks into its own class for readability

Fixes tailscale/tailscale#12850

Signed-off-by: kari-ts <kari@tailscale.com>
3 months ago
..
backend.go android: stop tailscaled when VPN has been revoked (#480) 3 months ago
callbacks.go libtailscale, android: fix allow LAN access (#324) 7 months ago
interfaces.go android: stop tailscaled when VPN has been revoked (#480) 3 months ago
localapi.go libtailscale, mdm: allow syspolicy to subscribe to policy change notifications (#462) 4 months ago
log.go android: switch to using gomobile 8 months ago
multitun.go android: switch to using gomobile 8 months ago
net.go android: stop tailscaled when VPN has been revoked (#480) 3 months ago
notifier.go android: switch to using gomobile 8 months ago
store.go android: switch to using gomobile 8 months ago
syspolicy_handler.go libtailscale, mdm: allow syspolicy to subscribe to policy change notifications (#462) 4 months ago
tailscale.go libtailscale, mdm: allow syspolicy to subscribe to policy change notifications (#462) 4 months ago
vpnfacade.go android: only reconfigure VPN when ready 8 months ago