cmd/tailscale: disable smooth tunnel handovers for ChromeOS

ChromeOS doesn't seem to correctly apply new tunnel settings if
another tunnel is already active. Instead, close any existing
tunnel before creating another.

Updates tailscale/tailscale#431

Signed-off-by: Elias Naur <mail@eliasnaur.com>
pull/2/head
Elias Naur 5 years ago
parent d9483b4501
commit 8dbac874eb

@ -122,6 +122,7 @@ func (b *backend) setCfg(cfg *router.Config) error {
} }
func (b *backend) updateTUN(service jni.Object, cfg *router.Config) error { func (b *backend) updateTUN(service jni.Object, cfg *router.Config) error {
b.CloseTUNs()
if reflect.DeepEqual(cfg, b.lastCfg) { if reflect.DeepEqual(cfg, b.lastCfg) {
return nil return nil
} }

Loading…
Cancel
Save