Use CapVer to offer Noise only to supported clients

This commit is contained in:
Juan Font Alonso 2022-08-15 23:35:06 +02:00
parent 865f1ffb3c
commit b3cf5289f8
2 changed files with 20 additions and 6 deletions

6
api.go
View file

@ -25,12 +25,6 @@ const (
ErrRegisterMethodCLIDoesNotSupportExpire = Error(
"machines registered with CLI does not support expire",
)
// The CapabilityVersion is used by Tailscale clients to indicate
// their codebase version. Tailscale clients can communicate over TS2021
// from CapabilityVersion 28.
// See https://github.com/tailscale/tailscale/blob/main/tailcfg/tailcfg.go
NoiseCapabilityVersion = 28
)
func (h *Headscale) HealthHandler(