admin
2020-10-14 b2fc802bf35143ed957a86d95e2de49934ea9ea5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package com.weikou.wpc.superad.api;
 
import com.ysh.wpc.appupdate.util.StringUtils;
 
public class BannerConstant {
 
    public static final String HOST = "http://ad.yeshitv.com:8090/ad/";// 外网
 
    // public static final String HOST = "http://192.168.1.122:8080/ad/";
 
    public static boolean isDisableProxy() {
        String proHost = null;// 娴狅絿鎮婃稉缁樻簚
        int proPort = -1;// 缁旑垰褰涢敓锟�
        try {
            proHost = android.net.Proxy.getDefaultHost();
            proPort = android.net.Proxy.getDefaultPort();
        } catch (Exception e) {
 
        }
        return StringUtils.isEmpty(proHost) && proPort == -1;
    }
 
}