net/dns: error out on linux if /etc/resolv.conf can't be read.

Signed-off-by: David Anderson <danderson@tailscale.com>
pull/1710/head
David Anderson 4 years ago
parent 1f9b73a531
commit 4849a4d3c8

@ -23,6 +23,9 @@ func NewOSConfigurator(logf logger.Logf, interfaceName string) (OSConfigurator,
if os.IsNotExist(err) {
return newDirectManager()
}
if err != nil {
return nil, fmt.Errorf("reading /etc/resolv.conf: %w", err)
}
switch resolvOwner(bs) {
case "systemd-resolved":

Loading…
Cancel
Save