File tree Expand file tree Collapse file tree 2 files changed +21
-2
lines changed Expand file tree Collapse file tree 2 files changed +21
-2
lines changed Original file line number Diff line number Diff line change 1
1
namespace Qiniu . Storage
2
2
{
3
3
/// <summary>
4
- /// 目前已支持的区域:华东/华北/华南/北美
4
+ /// 目前已支持的区域:华东/华北/华南/北美/新加坡
5
5
/// </summary>
6
6
public class Zone
7
7
{
@@ -90,5 +90,18 @@ public class Zone
90
90
SrcUpHosts = new string [ ] { "up-na0.qiniup.com" } ,
91
91
CdnUpHosts = new string [ ] { "upload-na0.qiniup.com" }
92
92
} ;
93
+
94
+ /// <summary>
95
+ /// 新加坡
96
+ /// </summary>
97
+ public static Zone ZONE_AS_Singapore = new Zone ( )
98
+ {
99
+ RsHost = "rs-as0.qiniu.com" ,
100
+ RsfHost = "rsf-as0.qiniu.com" ,
101
+ ApiHost = "api-as0.qiniu.com" ,
102
+ IovipHost = "iovip-as0.qbox.me" ,
103
+ SrcUpHosts = new string [ ] { "up-as0.qiniup.com" } ,
104
+ CdnUpHosts = new string [ ] { "upload-as0.qiniup.com" }
105
+ } ;
93
106
}
94
107
}
Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ public static Zone QueryZone(string accessKey, string bucket)
61
61
zone . RsHost = "rs-z1.qiniu.com" ;
62
62
zone . RsfHost = "rsf-z1.qiniu.com" ;
63
63
}
64
- else if ( zone . IovipHost . Contains ( "z1 " ) )
64
+ else if ( zone . IovipHost . Contains ( "z2 " ) )
65
65
{
66
66
zone . ApiHost = "api-z2.qiniu.com" ;
67
67
zone . RsHost = "rs-z2.qiniu.com" ;
@@ -73,6 +73,12 @@ public static Zone QueryZone(string accessKey, string bucket)
73
73
zone . RsHost = "rs-na0.qiniu.com" ;
74
74
zone . RsfHost = "rsf-na0.qiniu.com" ;
75
75
}
76
+ else if ( zone . IovipHost . Contains ( "as0" ) )
77
+ {
78
+ zone . ApiHost = "api-as0.qiniu.com" ;
79
+ zone . RsHost = "rs-as0.qiniu.com" ;
80
+ zone . RsfHost = "rsf-as0.qiniu.com" ;
81
+ }
76
82
else
77
83
{
78
84
zone . ApiHost = "api.qiniu.com" ;
You can’t perform that action at this time.
0 commit comments