Skip to content

Commit

Permalink
adjust buckets domains
Browse files Browse the repository at this point in the history
  • Loading branch information
bachue committed Aug 8, 2024
1 parent 63c735a commit 209f3c5
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions storage/region.go
Original file line number Diff line number Diff line change
Expand Up @@ -225,16 +225,17 @@ var regionMap = map[RegionID]Region{
}

const (
defaultUcHost0 = "kodo-config.qiniuapi.com"
defaultUcHost1 = "uc.qbox.me"
defaultUcHost0 = "uc.qiniuapi.com"
defaultUcHost1 = "kodo-config.qiniuapi.com"
defaultUcHost2 = "uc.qbox.me"
)

// UcHost 为查询空间相关域名的 API 服务地址
// 设置 UcHost 时,如果不指定 scheme 默认会使用 https
// Deprecated 使用 SetUcHosts 替换
var UcHost = ""

var ucHosts = []string{defaultUcHost0, defaultUcHost1}
var ucHosts = []string{defaultUcHost0, defaultUcHost1, defaultUcHost2}

func init() {
if defaultUcHosts, err := defaults.BucketURLs(); err == nil && len(defaultUcHosts) > 0 {
Expand Down

0 comments on commit 209f3c5

Please sign in to comment.