mirror of
https://github.com/tailscale/tailscale.git
synced 2025-03-28 03:52:35 +00:00
controlclient: handle nil Logf option
This commit is contained in:
parent
ea11d58e96
commit
e180bd67e6
@ -142,6 +142,9 @@ func NewNoStart(opts Options) (*Client, error) {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
if opts.Logf == nil {
|
||||||
|
opts.Logf = func(fmt string, args ...interface{}) {}
|
||||||
|
}
|
||||||
c := &Client{
|
c := &Client{
|
||||||
direct: direct,
|
direct: direct,
|
||||||
timeNow: opts.TimeNow,
|
timeNow: opts.TimeNow,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user