ipn/ipnlocal: on fresh lazy-connecting install, start in state NeedsLogin

Fixes #1759

Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:
Brad Fitzpatrick
2021-04-21 12:57:48 -07:00
committed by Brad Fitzpatrick
parent a29b0cf55f
commit 09891b9868
3 changed files with 55 additions and 0 deletions

View File

@@ -597,6 +597,9 @@ func (c *Client) mapRoutine() {
}
func (c *Client) AuthCantContinue() bool {
if c == nil {
return true
}
c.mu.Lock()
defer c.mu.Unlock()