mirror of
https://github.com/tailscale/tailscale.git
synced 2026-11-29 13:02:46 -08:00
cmd/tailscale: have web POST wait for authURL
Fixes #1939
Signed-off-by: David Crawshaw <[email protected]>
(cherry picked from commit 82b217f82e)
This commit is contained in:
1 parent
039541661e
commit
cc080b72fd
1 file changed
+4
@@ -321,6 +321,10 @@ func tailscaleUpForceReauth(ctx context.Context) (authURL string, retErr error)
|
||||
})
|
||||
bc.StartLoginInteractive()
|
||||
|
||||
<-pumpCtx.Done() // wait for authURL or complete failure
|
||||
if authURL == "" && retErr == nil {
|
||||
retErr = pumpCtx.Err()
|
||||
}
|
||||
if authURL == "" && retErr == nil {
|
||||
return "", fmt.Errorf("login failed with no backend error message")
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user