net/dns: fix inverted test for NetworkManager.

Signed-off-by: David Anderson <danderson@tailscale.com>
This commit is contained in:
David Anderson 2021-04-14 15:52:22 -07:00
parent 4849a4d3c8
commit 4b70c7b717
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ func NewOSConfigurator(logf logger.Logf, interfaceName string) (OSConfigurator,
return newNMManager(interfaceName)
case "resolvconf":
if err := resolvconfSourceIsNM(bs); err == nil {
if err := dbusPing("org.freedesktop.NetworkManager", "/org/freedesktop/NetworkManager/DnsManager"); err != nil {
if err := dbusPing("org.freedesktop.NetworkManager", "/org/freedesktop/NetworkManager/DnsManager"); err == nil {
return newNMManager(interfaceName)
}
}