mirror of
https://github.com/tailscale/tailscale.git
synced 2024-11-29 04:55:31 +00:00
controlclient: handle nil Logf option
This commit is contained in:
parent
ea11d58e96
commit
2b947b3b40
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user