diff options
| author | David Crawshaw <crawshaw@tailscale.com> | 2020-02-11 15:08:07 -0500 |
|---|---|---|
| committer | David Crawshaw <crawshaw@tailscale.com> | 2020-02-11 15:08:07 -0500 |
| commit | 2b947b3b4012d6f0c35000c81159c5ff060478d1 (patch) | |
| tree | 17dc0dd075491d2160d9cf38dc0b3c7e5bc262b6 | |
| parent | ea11d58e96c90706293e0fe0f86c410ac0458cc7 (diff) | |
| download | tailscale-crawshaw/br1.tar.xz tailscale-crawshaw/br1.zip | |
controlclient: handle nil Logf optioncrawshaw/br1
| -rw-r--r-- | control/controlclient/auto.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/control/controlclient/auto.go b/control/controlclient/auto.go index ebcf120d8..7ff11926f 100644 --- a/control/controlclient/auto.go +++ b/control/controlclient/auto.go @@ -142,6 +142,9 @@ func NewNoStart(opts Options) (*Client, error) { if err != nil { return nil, err } + if opts.Logf == nil { + opts.Logf = func(fmt string, args ...interface{}) {} + } c := &Client{ direct: direct, timeNow: opts.TimeNow, |
