Add version info command to signal server (#739)

Add version command to signal and management servers.

The version information will be filled during build time.
This commit is contained in:
Zoltan Papp
2023-03-15 07:54:51 +01:00
committed by GitHub
parent 2a1efbd0fd
commit 292ee260ad
20 changed files with 93 additions and 69 deletions

9
version/version.go Normal file
View File

@@ -0,0 +1,9 @@
package version
// will be replaced with the release version when using goreleaser
var version = "development"
// NetbirdVersion returns the Netbird version
func NetbirdVersion() string {
return version
}