net/dns: fix the build on freebsd (missing default case in switch)

Signed-off-by: David Anderson <danderson@tailscale.com>
This commit is contained in:
David Anderson 2021-09-04 23:48:51 -07:00 committed by Dave Anderson
parent b3b1c06b3a
commit bb6fdfb243
1 changed files with 3 additions and 0 deletions

View File

@ -30,6 +30,9 @@ func NewOSConfigurator(logf logger.Logf, _ string) (OSConfigurator, error) {
return newDebianResolvconfManager(logf)
case "openresolv":
return newOpenresolvManager()
default:
logf("[unexpected] got unknown flavor of resolvconf %q, falling back to direct manager", resolvconfStyle())
return newDirectManager(), nil
}
default:
return newDirectManager(), nil