File tree 1 file changed +24
-0
lines changed
library/src/main/java/com/qiniu/android/common
1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change 6
6
* Created by bailong on 15/10/10.
7
7
*/
8
8
public abstract class Zone {
9
+
10
+ /**
11
+ * 华东机房, http
12
+ * */
9
13
public static final Zone zone0 =
10
14
createZone ("upload.qiniu.com" , "up.qiniu.com" , "183.136.139.10" , "115.231.182.136" );
11
15
16
+ /**
17
+ * 华北机房, http
18
+ * */
12
19
public static final Zone zone1 =
13
20
createZone ("upload-z1.qiniu.com" , "up-z1.qiniu.com" , "106.38.227.27" , "106.38.227.28" );
14
21
22
+ /**
23
+ * 华南机房, http
24
+ * */
15
25
public static final Zone zone2 =
16
26
createZone ("upload-z2.qiniu.com" , "up-z2.qiniu.com" , "183.60.214.197" , "14.152.37.7" );
17
27
28
+ /**
29
+ * 北美机房, http
30
+ * */
18
31
public static final Zone zoneNa0 =
19
32
createZone ("upload-na0.qiniu.com" , "up-na0.qiniu.com" , "23.236.102.3" , "23.236.102.2" );
20
33
34
+ /**
35
+ * 自动判断机房, http
36
+ * */
37
+ public static final AutoZone httpAutoZone = new AutoZone (false , null );
38
+
39
+ /**
40
+ * 自动判断机房, https
41
+ * */
42
+ public static final AutoZone httpsAutoZone = new AutoZone (true , null );
43
+
44
+
21
45
private static Zone createZone (String upHost , String upHostBackup , String upIp , String upIp2 ) {
22
46
String [] upIps = {upIp , upIp2 };
23
47
ServiceAddress up = new ServiceAddress ("http://" + upHost , upIps );
You can’t perform that action at this time.
0 commit comments