forked from TrueCloudLab/rclone
oracle object storage: fix object storage endpoint for custom endpoints
This commit is contained in:
parent
c69eb84573
commit
743ea6ac26
1 changed files with 3 additions and 0 deletions
|
@ -70,6 +70,9 @@ func newObjectStorageClient(ctx context.Context, opt *Options) (*objectstorage.O
|
||||||
if opt.Region != "" {
|
if opt.Region != "" {
|
||||||
client.SetRegion(opt.Region)
|
client.SetRegion(opt.Region)
|
||||||
}
|
}
|
||||||
|
if opt.Endpoint != "" {
|
||||||
|
client.Host = opt.Endpoint
|
||||||
|
}
|
||||||
modifyClient(ctx, opt, &client.BaseClient)
|
modifyClient(ctx, opt, &client.BaseClient)
|
||||||
return &client, err
|
return &client, err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue