netbird/version
Maycon Santos 5343bee7b2
[management] check and log on new management version (#4029)
This PR enhances the version checker to send a custom User-Agent header when polling for updates, and configures both the management CLI and client UI to use distinct agents. 

- NewUpdate now takes an `httpAgent` string to set the User-Agent header.
- `fetchVersion` builds a custom HTTP request (instead of `http.Get`) and sets the User-Agent.
- Management CLI and client UI now pass `"nb/management"` and `"nb/client-ui"` respectively to NewUpdate.
- Tests updated to supply an `httpAgent` constant.
- Logs if there is a new version available for management
2025-06-22 16:44:33 +02:00
..
update_test.go [management] check and log on new management version (#4029) 2025-06-22 16:44:33 +02:00
update.go [management] check and log on new management version (#4029) 2025-06-22 16:44:33 +02:00
url_darwin.go Feature/update check (#1232) 2023-10-30 10:32:48 +01:00
url_freebsd.go Release 0.28.0 (#2092) 2024-06-13 13:24:24 +02:00
url_linux.go Feature/update check (#1232) 2023-10-30 10:32:48 +01:00
url_windows.go Feature/update check (#1232) 2023-10-30 10:32:48 +01:00
url.go Feature/update check (#1232) 2023-10-30 10:32:48 +01:00
version.go Prepare regexps on compile time (#1327) 2023-11-27 13:01:00 +01:00