net/dns: fix inverted test for NetworkManager version.
Signed-off-by: David Anderson <danderson@tailscale.com>
This commit is contained in:
parent
320cc8fa21
commit
9337826011
|
@ -168,8 +168,8 @@ func nmVersionBetween(first, last string) (bool, error) {
|
|||
return false, fmt.Errorf("unexpected type %T for NM version", v.Value())
|
||||
}
|
||||
|
||||
inInterval := cmpver.Compare(version, first) < 0 || cmpver.Compare(version, last) > 0
|
||||
return inInterval, nil
|
||||
outside := cmpver.Compare(version, first) < 0 || cmpver.Compare(version, last) > 0
|
||||
return !outside, nil
|
||||
}
|
||||
|
||||
func nmIsUsingResolved() error {
|
||||
|
|
Loading…
Reference in New Issue