mirror of
https://github.com/juanfont/headscale.git
synced 2024-12-26 22:25:52 -05:00
14 lines
244 B
Go
14 lines
244 B
Go
|
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
|
||
|
}
|