mirror of
https://github.com/fog/fog-aws.git
synced 2022-11-09 13:50:52 -05:00
add cn support for s3
This commit is contained in:
parent
27ec738ffe
commit
ec8b515009
1 changed files with 2 additions and 0 deletions
|
@ -205,6 +205,8 @@ module Fog
|
|||
case region.to_s
|
||||
when DEFAULT_REGION, ''
|
||||
's3.amazonaws.com'
|
||||
when 'cn-north-1'
|
||||
's3.cn-north-1.amazonaws.com.cn'
|
||||
else
|
||||
"s3-#{region}.amazonaws.com"
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue