cmd/tailscale: note that seamless VPN tunnel handover works on Android

But not on ChromeOS, and I haven't found a robust way to detect
ChromeOS.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
pull/2/head
Elias Naur 5 years ago
parent 647a4a9bfd
commit c290ccf388

@ -122,7 +122,14 @@ func (b *backend) setCfg(cfg *router.Config) error {
}
func (b *backend) updateTUN(service jni.Object, cfg *router.Config) error {
// Close previous tunnel(s).
// This is necessary for ChromeOS, native Android devices
// seem to handle seamless handover between tunnels correctly.
//
// TODO(eliasnaur): If seamless handover becomes a desirable feature, skip
// the closing on ChromeOS.
b.CloseTUNs()
if reflect.DeepEqual(cfg, b.lastCfg) {
return nil
}

Loading…
Cancel
Save