mirror of
https://github.com/juanfont/headscale.git
synced 2026-05-24 19:18:41 +09:00
Regenerate capver for tailscale v1.98 — `MinSupportedCapabilityVersion` slides 109 → 113 (v1.78 → v1.80). v1.80+ clients understand `Node.HomeDERP`, which superseded `LegacyDERPString` upstream at capver 111. Drops the emit, plumbing, the trip-wire that caught this cleanup, the golden test fixtures, and the integration check on `peer.LegacyDERPString()` — the sibling `HomeDERP` check covers intent. `v1.98` was added by hand to `capver_generated.go` because tailscale skipped publishing v1.97/v1.98 to ghcr until late in the cycle; a clean regeneration produces the same content.
41 lines
733 B
Go
41 lines
733 B
Go
package capver
|
|
|
|
// Generated DO NOT EDIT
|
|
|
|
import "tailscale.com/tailcfg"
|
|
|
|
var tailscaleLatestMajorMinorTests = []struct {
|
|
n int
|
|
stripV bool
|
|
expected []string
|
|
}{
|
|
{3, false, []string{"v1.94", "v1.96", "v1.98"}},
|
|
{2, true, []string{"1.96", "1.98"}},
|
|
{10, true, []string{
|
|
"1.80",
|
|
"1.82",
|
|
"1.84",
|
|
"1.86",
|
|
"1.88",
|
|
"1.90",
|
|
"1.92",
|
|
"1.94",
|
|
"1.96",
|
|
"1.98",
|
|
}},
|
|
{0, false, nil},
|
|
}
|
|
|
|
var capVerMinimumTailscaleVersionTests = []struct {
|
|
input tailcfg.CapabilityVersion
|
|
expected string
|
|
}{
|
|
{113, "v1.80"},
|
|
{32, "v1.24"},
|
|
{41, "v1.30"},
|
|
{46, "v1.32"},
|
|
{51, "v1.34"},
|
|
{9001, ""}, // Test case for a version higher than any in the map
|
|
{60, ""}, // Test case for a version lower than any in the map
|
|
}
|