diff --git a/cmd/client.go b/cmd/client.go index f93836c3..2d26f4b0 100644 --- a/cmd/client.go +++ b/cmd/client.go @@ -191,7 +191,6 @@ type Config struct { HostURL string AppName string AppVersion string - AppComments []string Debug bool Insecure bool Lookup minio.BucketLookupType diff --git a/cmd/mirror-main.go b/cmd/mirror-main.go index c1c9925d..e522197a 100644 --- a/cmd/mirror-main.go +++ b/cmd/mirror-main.go @@ -300,7 +300,7 @@ func (mj *mirrorJob) doRemove(ctx context.Context, sURLs URLs) URLs { if pErr != nil { return sURLs.WithError(pErr) } - clnt.AddUserAgent(uaMirrorAppName, Version) + clnt.AddUserAgent(uaMirrorAppName, ReleaseTag) contentCh := make(chan *ClientContent, 1) contentCh <- &ClientContent{URL: *newClientURL(sURLs.TargetContent.URL.Path)} close(contentCh) diff --git a/cmd/utils.go b/cmd/utils.go index 0818e121..7ca4ab6c 100644 --- a/cmd/utils.go +++ b/cmd/utils.go @@ -27,7 +27,6 @@ import ( "os" "path/filepath" "regexp" - "runtime" "sort" "strconv" "strings" @@ -138,8 +137,7 @@ func NewS3Config(urlStr string, aliasCfg *aliasConfigV10) *Config { s3Config := new(Config) s3Config.AppName = filepath.Base(os.Args[0]) - s3Config.AppVersion = Version - s3Config.AppComments = []string{os.Args[0], runtime.GOOS, runtime.GOARCH} + s3Config.AppVersion = ReleaseTag s3Config.Debug = globalDebug s3Config.Insecure = globalInsecure