From 8dbac874eb0d8d2d164593dc3c9a9c3cfb47a9c2 Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Mon, 15 Jun 2020 15:45:40 +0200 Subject: [PATCH] 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 --- cmd/tailscale/backend.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/tailscale/backend.go b/cmd/tailscale/backend.go index a5f52dd..9142f62 100644 --- a/cmd/tailscale/backend.go +++ b/cmd/tailscale/backend.go @@ -122,6 +122,7 @@ func (b *backend) setCfg(cfg *router.Config) error { } func (b *backend) updateTUN(service jni.Object, cfg *router.Config) error { + b.CloseTUNs() if reflect.DeepEqual(cfg, b.lastCfg) { return nil }