mirror of
https://github.com/tailscale/tailscale.git
synced 2024-11-29 04:55:31 +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,
|
||||
Hostinfo: &hi,
|
||||
})
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
c.SetStatusFunc(func(new controlclient.Status) {
|
||||
if new.URL != "" {
|
||||
fmt.Fprintf(os.Stderr, "To authenticate, visit:\n\n\t%s\n\n", new.URL)
|
||||
|
Loading…
Reference in New Issue
Block a user