mirror of
https://github.com/tailscale/tailscale.git
synced 2025-08-13 06:07:34 +00:00
net/dns: return error from NewOSManager, use it to initialize NM.
Signed-off-by: David Anderson <danderson@tailscale.com>
This commit is contained in:
@@ -219,7 +219,11 @@ func NewUserspaceEngine(logf logger.Logf, conf Config) (_ Engine, reterr error)
|
||||
}
|
||||
if conf.DNS == nil {
|
||||
logf("[v1] using fake (no-op) DNS configurator")
|
||||
conf.DNS = dns.NewNoopManager()
|
||||
d, err := dns.NewNoopManager()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
conf.DNS = d
|
||||
}
|
||||
|
||||
tsTUNDev := tstun.Wrap(logf, conf.Tun)
|
||||
|
Reference in New Issue
Block a user