mirror of
https://github.com/tailscale/tailscale.git
synced 2024-12-01 14:05:39 +00:00
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())
|
return false, fmt.Errorf("unexpected type %T for NM version", v.Value())
|
||||||
}
|
}
|
||||||
|
|
||||||
inInterval := cmpver.Compare(version, first) < 0 || cmpver.Compare(version, last) > 0
|
outside := cmpver.Compare(version, first) < 0 || cmpver.Compare(version, last) > 0
|
||||||
return inInterval, nil
|
return !outside, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func nmIsUsingResolved() error {
|
func nmIsUsingResolved() error {
|
||||||
|
Loading…
Reference in New Issue
Block a user