cmd/tailscale: don't print auth URL when using a --authkey

Fixes #1755

Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
pull/1768/head
Brad Fitzpatrick 2021-04-21 21:59:00 -07:00
parent e40e5429c2
commit c91a22c82e
1 changed files with 1 additions and 1 deletions

View File

@ -367,7 +367,7 @@ func runUp(ctx context.Context, args []string) error {
cancel() cancel()
} }
} }
if url := n.BrowseToURL; url != nil { if url := n.BrowseToURL; url != nil && upArgs.authKey == "" {
printed = true printed = true
fmt.Fprintf(os.Stderr, "\nTo authenticate, visit:\n\n\t%s\n\n", *url) fmt.Fprintf(os.Stderr, "\nTo authenticate, visit:\n\n\t%s\n\n", *url)
} }