This commit is contained in:
Daniel 2024-10-26 22:41:58 +08:00
parent e25e8042ba
commit b32257cf1c
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
16 changed files with 648 additions and 622 deletions

View file

@ -339,7 +339,7 @@ func InitConf() {
Conf.Sync.Mode = 1
}
if nil == Conf.Sync.S3 {
Conf.Sync.S3 = &conf.S3{SkipTlsVerify: true}
Conf.Sync.S3 = &conf.S3{PathStyle: true, SkipTlsVerify: true}
}
Conf.Sync.S3.Endpoint = util.NormalizeEndpoint(Conf.Sync.S3.Endpoint)
Conf.Sync.S3.Timeout = util.NormalizeTimeout(Conf.Sync.S3.Timeout)

View file

@ -584,6 +584,10 @@ func formatRepoErrorMsg(err error) string {
msg = Conf.Language(213)
} else if errors.Is(err, cloud.ErrCloudServiceUnavailable) {
msg = Conf.language(219)
} else if errors.Is(err, cloud.ErrCloudForbidden) {
msg = Conf.language(249)
} else if errors.Is(err, cloud.ErrCloudTooManyRequests) {
msg = Conf.language(250)
} else {
logging.LogErrorf("sync failed caused by network: %s", msg)
msgLowerCase := strings.ToLower(msg)