mirror of
https://github.com/tailscale/tailscale.git
synced 2025-02-18 02:48:40 +00:00
taillogin: check err in controlclient.New.
Signed-off-by: David Anderson <dave@natulte.net>
This commit is contained in:
parent
452b81d56b
commit
14af0c4eb3
@ -49,6 +49,9 @@ func main() {
|
|||||||
ServerURL: *server,
|
ServerURL: *server,
|
||||||
Hostinfo: &hi,
|
Hostinfo: &hi,
|
||||||
})
|
})
|
||||||
|
if err != nil {
|
||||||
|
log.Fatal(err)
|
||||||
|
}
|
||||||
c.SetStatusFunc(func(new controlclient.Status) {
|
c.SetStatusFunc(func(new controlclient.Status) {
|
||||||
if new.URL != "" {
|
if new.URL != "" {
|
||||||
fmt.Fprintf(os.Stderr, "To authenticate, visit:\n\n\t%s\n\n", new.URL)
|
fmt.Fprintf(os.Stderr, "To authenticate, visit:\n\n\t%s\n\n", new.URL)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user