From 19dac4d96820993273537f6595743d703cc77c11 Mon Sep 17 00:00:00 2001 From: jwijenbergh Date: Tue, 6 Feb 2024 16:58:01 +0100 Subject: HTTP: Fix register agent to include version package --- internal/http/http.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'internal/http') 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) } -- cgit v1.2.3