cli: use gobuild version handling (#2770)

This commit is contained in:
Kristoffer Dalby
2025-09-12 11:47:31 +02:00
committed by GitHub
parent ee0ef396a2
commit 3950f8f171
5 changed files with 89 additions and 15 deletions

View File

@@ -511,7 +511,8 @@ func (h *Headscale) Serve() error {
spew.Dump(h.cfg)
}
log.Info().Str("version", types.Version).Str("commit", types.GitCommitHash).Msg("Starting Headscale")
versionInfo := types.GetVersionInfo()
log.Info().Str("version", versionInfo.Version).Str("commit", versionInfo.Commit).Msg("Starting Headscale")
log.Info().
Str("minimum_version", capver.TailscaleVersion(capver.MinSupportedCapabilityVersion)).
Msg("Clients with a lower minimum version will be rejected")