微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

如何连接到VPN服务器?

如何解决如何连接到VPN服务器?

我有一个脚本可以从 https://www.vpngate.net/en/ HostName、IP、score、Ping、Speed、CountryLong、CountryShort、NumVpnSessions、Uptime、TotalUsers、TotalTraffic、LogType、Operator、Message、OpenVPN_ConfigData_Base64 获取

servers = []
    list_cvs = str(urllib.request.urlopen("http://www.vpngate.net/api/iphone/").read())
    list_cvs = list_cvs.replace("\\r","").split('\\n')[2:-2]

    for server in list_cvs:
        vpn_server = server.split(',')
        tmp = {
            'HostName': vpn_server[0],'IP': vpn_server[1],'score': vpn_server[2],'Ping': vpn_server[3],'Speed': vpn_server[4],'CountryLong': vpn_server[5],'CountryShort': vpn_server[6],'NumVpnSessions': vpn_server[7],'Uptime': vpn_server[8],'TotalUsers': vpn_server[9],'TotalTraffic': vpn_server[10],'LogType': vpn_server[11],'Operator': vpn_server[12],'Message': vpn_server[13],'OpenVPN_ConfigData_Base64': vpn_server[14]
        }
        servers.append(tmp)
    return servers

如何在没有 openvpn 的情况下连接到 vpn 服务器。将来,我想使用收到的 ip 向其他资源(用于解析器)发送请求。

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。