Improve user agents

This commit is contained in:
Daniel
2023-04-13 16:28:43 +02:00
parent 64d1e165bb
commit 72c59c0e52
3 changed files with 12 additions and 3 deletions

View File

@@ -57,9 +57,10 @@ var (
// UserAgent is an HTTP User-Agent that is used to add
// more context to requests made by the registry when
// fetching resources from the update server.
UserAgent = "Core"
UserAgent = fmt.Sprintf("Portmaster (%s %s)", runtime.GOOS, runtime.GOARCH)
// Explicitly disables automatic software updates. Used in android.
// DisableSoftwareAutoUpdate specifies whether software updates should be disabled.
// This is used on Android, as it will never require binary updates.
DisableSoftwareAutoUpdate = false
)
@@ -250,7 +251,7 @@ func checkForUpdates(ctx context.Context) (err error) {
}
defer func() {
// Resolve any error and and send success notification.
// Resolve any error and send success notification.
if err == nil {
log.Infof("updates: successfully checked for updates")
notifyUpdateSuccess(forcedUpdate)