Add user-agent to cmd and UI when calling daemon

This commit is contained in:
braginini
2022-05-22 18:53:21 +02:00
parent 4a499530ee
commit f4ce8c9c4e
12 changed files with 181 additions and 171 deletions

View File

@@ -23,3 +23,11 @@ type Info struct {
func WiretrusteeVersion() string {
return version
}
func NetBirdDesktopUIUserAgent() string {
return "netbird-desktop-ui/" + WiretrusteeVersion()
}
func NetBirdCmdUserAgent() string {
return "netbird-cmd/" + WiretrusteeVersion()
}