From 6cc75db76806e9dcb2f83638b876577703affc3d Mon Sep 17 00:00:00 2001 From: Jumping Qu Date: Fri, 29 Sep 2017 21:17:52 -0500 Subject: [PATCH] Update s3gof3r.go added support for cn-north-1 region, referring the http://docs.amazonaws.cn/general/latest/gr/rande.html#cnnorth_region . --- s3gof3r.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/s3gof3r.go b/s3gof3r.go index af66f8f..3465c50 100644 --- a/s3gof3r.go +++ b/s3gof3r.go @@ -33,6 +33,8 @@ func (s *S3) Region() string { switch s.Domain { case "s3.amazonaws.com", "s3-external-1.amazonaws.com": return "us-east-1" + case "s3.cn-north-1.amazonaws.com.cn": + return "cn-north-1" case "s3-accelerate.amazonaws.com": if region == "" { panic("can't find endpoint region")