mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-21 14:19:49 +08:00
fix(region): aliyun oss https
This commit is contained in:
@@ -565,6 +565,9 @@ func (client *SAliyunClient) getOssClientByEndpoint(endpoint string) (*oss.Clien
|
||||
cliOpts := []oss.ClientOption{
|
||||
oss.HTTPClient(httpClient),
|
||||
}
|
||||
if !strings.HasPrefix(endpoint, "http") {
|
||||
endpoint = "https://" + endpoint
|
||||
}
|
||||
cli, err := oss.New(endpoint, client.accessKey, client.accessSecret, cliOpts...)
|
||||
if err != nil {
|
||||
return nil, errors.Wrap(err, "oss.New")
|
||||
|
||||
Reference in New Issue
Block a user