mirror of
https://github.com/tailscale/tailscale.git
synced 2025-12-03 02:21:58 +00:00
net/dns: remove ManagerConfig, pass relevant args directly.
Signed-off-by: David Anderson <danderson@tailscale.com>
This commit is contained in:
@@ -4,11 +4,13 @@
|
||||
|
||||
package dns
|
||||
|
||||
func newManager(mconfig ManagerConfig) managerImpl {
|
||||
import "tailscale.com/types/logger"
|
||||
|
||||
func newManager(logf logger.Logf, _ string) managerImpl {
|
||||
switch {
|
||||
case isResolvconfActive():
|
||||
return newResolvconfManager(mconfig)
|
||||
return newResolvconfManager(logf)
|
||||
default:
|
||||
return newDirectManager(mconfig)
|
||||
return newDirectManager()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user