Get integration test netmap from watch-ipn command (#1729)

This commit is contained in:
Kristoffer Dalby
2024-02-18 23:22:18 +01:00
committed by GitHub
parent 3f162c212c
commit 5dbd59ca55
6 changed files with 244 additions and 34 deletions

13
hscontrol/util/util.go Normal file
View File

@@ -0,0 +1,13 @@
package util
import "tailscale.com/util/cmpver"
func TailscaleVersionNewerOrEqual(minimum, toCheck string) bool {
if cmpver.Compare(minimum, toCheck) <= 0 ||
toCheck == "unstable" ||
toCheck == "head" {
return true
}
return false
}