mirror of
https://github.com/netbirdio/netbird.git
synced 2026-05-04 08:06:37 +00:00
Add User-Agent to CLI and Ui and pass to Management
This commit is contained in:
@@ -16,8 +16,18 @@ type Info struct {
|
||||
Hostname string
|
||||
CPUs int
|
||||
WiretrusteeVersion string
|
||||
Caller string
|
||||
CallerVersion string
|
||||
}
|
||||
|
||||
func WiretrusteeVersion() string {
|
||||
return version
|
||||
}
|
||||
|
||||
func NetBirdDesktopUIUserAgent() string {
|
||||
return "netbird-desktop-ui/" + WiretrusteeVersion()
|
||||
}
|
||||
|
||||
func NetBirdCLIUserAgent() string {
|
||||
return "netbird-cli/" + WiretrusteeVersion()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user