Improve user agents
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user