Skip to content

Commit 51854f9

Browse files
author
zianazhao
committed
fix-cos域名
1 parent b2a8971 commit 51854f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/client/client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ func NewCdnClient(conf *config.TencentConfig) (*cdn.Client, error) {
343343

344344
func NewCosClient(conf *config.TencentConfig) (*cos.Client, error) {
345345
// 用于Get Service 查询, service域名暂时只支持外网
346-
su, _ := url.Parse("http://cos." + conf.Credential.Region + ".tencentcos.cn")
346+
su, _ := url.Parse("http://cos." + conf.Credential.Region + ".myqcloud.com")
347347
b := &cos.BaseURL{BucketURL: nil, ServiceURL: su}
348348
client := cos.NewClient(b, &http.Client{
349349
Transport: &cos.AuthorizationTransport{

0 commit comments

Comments
 (0)