all: consistently initialize Logf when creating tsdial.Dialers
Most visible when using tsnet.Server, but could have resulted in dropped messages in a few other places too. Fixes #5743 Signed-off-by: Mihai Parparita <mihai@tailscale.com>
This commit is contained in:
committed by
Mihai Parparita
parent
a7efc7bd17
commit
8343b243e7
@@ -282,7 +282,7 @@ func NewUserspaceEngine(logf logger.Logf, conf Config) (_ Engine, reterr error)
|
||||
conf.DNS = d
|
||||
}
|
||||
if conf.Dialer == nil {
|
||||
conf.Dialer = new(tsdial.Dialer)
|
||||
conf.Dialer = &tsdial.Dialer{Logf: logf}
|
||||
}
|
||||
|
||||
var tsTUNDev *tstun.Wrapper
|
||||
|
||||
Reference in New Issue
Block a user