@@ -191,7 +191,6 @@ type Config struct {
|
||||
HostURL string
|
||||
AppName string
|
||||
AppVersion string
|
||||
AppComments []string
|
||||
Debug bool
|
||||
Insecure bool
|
||||
Lookup minio.BucketLookupType
|
||||
|
||||
+1
-1
@@ -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)
|
||||
|
||||
+1
-3
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user