net/dns: split resolvconfManager into a debian and an openresolv manager.

Signed-off-by: David Anderson <danderson@tailscale.com>
This commit is contained in:
David Anderson
2021-04-10 18:55:05 -07:00
parent 5480189313
commit 58760f7b82
4 changed files with 86 additions and 69 deletions

View File

@@ -14,7 +14,12 @@ func NewOSConfigurator(logf logger.Logf, interfaceName string) OSConfigurator {
// case isNMActive():
// return newNMManager(interfaceName)
case isResolvconfActive():
return newResolvconfManager(logf)
if resolvconfIsOpenresolv() {
return newOpenresolvManager()
} else {
// Debian resolvconf
return newResolvconfManager(logf)
}
default:
return newDirectManager()
}