代理测试网址自定义说明

1. 代理检测网址自定义及指定首选检测网址;

2. 代理检测不阻塞窗口关闭;


检测网址:默认为3个 lumtest 、vmlogin、ip-api.com,选择后点《测试代理》按钮,可以优先走选择的网址来测试IP。

这里说明3者的区别:

a. lumtest为Luminati代理服务商的检测IP网址,使用他家的代理IP一般都选用这个来测试IP,因为其它域名可能不走他最终代理出口,造成检测的出口IP不准;

b. vmlogin为官方自有IP库,支持IPV6地址检测;

c. ip-api.com为第三方IP检测网址,注意:它接受每分钟来自同一个IP地址的45个请求;

3. 自定义检测网址说明:

点击上图界面中的“检测网址:”标签,会自动打开iptest.ini配置文件,本文件在安装目录下;

格式说明:

    [iptest]
    ;表示3个检测网址,最大支持9个
    count=3

    ;下面是从 1-9个测试网址
    [1]
    ;检测网址显示名称
    name=lumtest
    ;检测网址API接口
    api=http://lumtest.com/myip.json
    ;接口返回JSON 串中 ip 取自哪个字段
    ip=ip
    ;接口返回JSON 串中 zip 取自哪个字段
    zip=geo.postal_code
    ;接口返回JSON 串中 latitude 取自哪个字段
    latitude=geo.latitude
    ;接口返回JSON 串中 longitude 取自哪个字段
    longitude=geo.longitude
    ;接口返回JSON 串中 countrycode 取自哪个字段,这里是取国家简码(2位)
    countrycode=country
    ;接口返回JSON 串中 city 取自哪个字段
    city=geo.city
    ;接口返回JSON 串中 timezone 取自哪个字段
    timezone=geo.tz
    ;接口返回JSON 串中 region 取自哪个字段
    region=geo.region_name

    ..........


对于二次开发或高级用户可以修改使用自己适用的IP检测接口。
本地测试代理接口,支持首选哪个检测网址,对应参数为:urlindex

  http://127.0.0.1:35000/api/v1/proxy/test?proxytype=socks5&proxyserver=127.0.0.1&proxyport=1080&proxyusername=&proxypassword=&urlindex=0
    url_index     =  0    lumtest
    url_index     =  1    VMLogin
    url_index     =  2    ip-api.com