From da601c23e14db22a137af650ec0b2bdcea52aee8 Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Fri, 13 May 2022 21:47:23 -0700 Subject: [PATCH] ipn/ipnlocal: add missing place where we set the SSH atomic This fixes the "tailscale up --authkey=... --ssh" path (or any "up" path that used Start instead of EditPrefs) which wasn't setting the bit. Updates #3802 Change-Id: Ifca532ec58296fedcedb5582312dfee884367ed7 Signed-off-by: Brad Fitzpatrick --- ipn/ipnlocal/local.go | 1 + 1 file changed, 1 insertion(+) diff --git a/ipn/ipnlocal/local.go b/ipn/ipnlocal/local.go index 147d20e0c..bae4b3f34 100644 --- a/ipn/ipnlocal/local.go +++ b/ipn/ipnlocal/local.go @@ -955,6 +955,7 @@ func (b *LocalBackend) Start(opts ipn.Options) error { b.logf("failed to save UpdatePrefs state: %v", err) } } + b.setAtomicValuesFromPrefs(b.prefs) } wantRunning := b.prefs.WantRunning