summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjwijenbergh <jeroenwijenbergh@protonmail.com>2024-02-06 16:58:01 +0100
committerJeroen Wijenbergh <46386452+jwijenbergh@users.noreply.github.com>2024-02-19 14:15:07 +0100
commit19dac4d96820993273537f6595743d703cc77c11 (patch)
tree9882723a05fed802b26a4a14fecaa46887d6bca3
parent6cdcb450a667e0f730dc4d349efd216e11b57144 (diff)
HTTP: Fix register agent to include version package
-rw-r--r--internal/http/http.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/http/http.go b/internal/http/http.go
index 536a9c3..4d8f3bc 100644
--- a/internal/http/http.go
+++ b/internal/http/http.go
@@ -264,6 +264,6 @@ func (e *StatusError) Error() string {
}
// RegisterAgent registers the user agent for client and version
-func RegisterAgent(client string, version string) {
- UserAgent = fmt.Sprintf("%s/%s %s", client, version, "eduvpn-common/2.0.0")
+func RegisterAgent(client string, verApp string) {
+ UserAgent = fmt.Sprintf("%s/%s eduvpn-common/%s", client, verApp, version.Version)
}