net/dns: fix inverted test for NetworkManager.
Signed-off-by: David Anderson <danderson@tailscale.com>
This commit is contained in:
parent
4849a4d3c8
commit
4b70c7b717
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue