首页 » 未分类 » 解决Super Mario Run在国内无法连接的问题

解决Super Mario Run在国内无法连接的问题

作者: vForce 分类: 未分类 发布时间: 2016-12-17 10:09 ė浏览 6,025 次 6没有评论

昨日笔者从美区App Store下载了超级马里奥跑酷,但由于Super Mario Run的服务器是Amazon AWS的美国东部区域,因此国内直接连接质量极差,很难连上。因此笔者写了一个PHP的脚本,从AWS公布的IP地址段转换一个Surge的规则。文末有笔者已经转好的规则,但是请注意笔者用的代理名称为Proxy,大家请根据各自的情况进行更换。

PHP代码如下:

<?php
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, "https://ip-ranges.amazonaws.com/ip-ranges.json");
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
$data = curl_exec($curl);
curl_close($curl);
$json = json_decode($data, 1);
$result = "";
foreach ($json['prefixes'] as $rule) {
if ($rule['ip_prefix'] && preg_match('/us.*/', $rule['region'])) {
$result .= "IP-CIDR,{$rule['ip_prefix']},Proxy" . PHP_EOL;
}
}
echo $result;

2016年12月17日转换好的规则如下:

IP-CIDR,23.20.0.0/14,Proxy
IP-CIDR,34.192.0.0/12,Proxy
IP-CIDR,35.160.0.0/13,Proxy
IP-CIDR,50.16.0.0/15,Proxy
IP-CIDR,50.18.0.0/16,Proxy
IP-CIDR,50.19.0.0/16,Proxy
IP-CIDR,50.112.0.0/16,Proxy
IP-CIDR,52.0.0.0/15,Proxy
IP-CIDR,52.2.0.0/15,Proxy
IP-CIDR,52.4.0.0/14,Proxy
IP-CIDR,52.8.0.0/16,Proxy
IP-CIDR,52.9.0.0/16,Proxy
IP-CIDR,52.10.0.0/15,Proxy
IP-CIDR,52.12.0.0/15,Proxy
IP-CIDR,52.14.0.0/16,Proxy
IP-CIDR,52.15.0.0/16,Proxy
IP-CIDR,52.20.0.0/14,Proxy
IP-CIDR,52.24.0.0/14,Proxy
IP-CIDR,52.32.0.0/14,Proxy
IP-CIDR,52.36.0.0/14,Proxy
IP-CIDR,52.40.0.0/14,Proxy
IP-CIDR,52.44.0.0/15,Proxy
IP-CIDR,52.52.0.0/15,Proxy
IP-CIDR,52.54.0.0/15,Proxy
IP-CIDR,52.70.0.0/15,Proxy
IP-CIDR,52.72.0.0/15,Proxy
IP-CIDR,52.86.0.0/15,Proxy
IP-CIDR,52.88.0.0/15,Proxy
IP-CIDR,52.90.0.0/15,Proxy
IP-CIDR,52.92.16.0/20,Proxy
IP-CIDR,52.92.32.0/22,Proxy
IP-CIDR,52.92.48.0/22,Proxy
IP-CIDR,52.92.76.0/22,Proxy
IP-CIDR,52.92.252.0/22,Proxy
IP-CIDR,52.93.1.0/24,Proxy
IP-CIDR,52.93.3.0/24,Proxy
IP-CIDR,52.93.4.0/24,Proxy
IP-CIDR,52.93.12.0/22,Proxy
IP-CIDR,52.94.0.0/22,Proxy
IP-CIDR,52.94.4.0/24,Proxy
IP-CIDR,52.94.9.0/24,Proxy
IP-CIDR,52.94.10.0/24,Proxy
IP-CIDR,52.94.12.0/24,Proxy
IP-CIDR,52.94.28.0/23,Proxy
IP-CIDR,52.94.30.0/23,Proxy
IP-CIDR,52.94.192.0/22,Proxy
IP-CIDR,52.94.197.0/24,Proxy
IP-CIDR,52.94.198.0/28,Proxy
IP-CIDR,52.94.198.32/28,Proxy
IP-CIDR,52.94.199.0/24,Proxy
IP-CIDR,52.94.208.0/21,Proxy
IP-CIDR,52.94.224.0/20,Proxy
IP-CIDR,52.94.240.0/22,Proxy
IP-CIDR,52.94.244.0/22,Proxy
IP-CIDR,52.94.248.0/28,Proxy
IP-CIDR,52.94.248.96/28,Proxy
IP-CIDR,52.94.248.128/28,Proxy
IP-CIDR,52.94.248.160/28,Proxy
IP-CIDR,52.94.248.224/28,Proxy
IP-CIDR,52.94.252.0/23,Proxy
IP-CIDR,52.94.254.0/23,Proxy
IP-CIDR,52.95.0.0/20,Proxy
IP-CIDR,52.95.16.0/21,Proxy
IP-CIDR,52.95.24.0/22,Proxy
IP-CIDR,52.95.28.0/24,Proxy
IP-CIDR,52.95.40.0/24,Proxy
IP-CIDR,52.95.48.0/22,Proxy
IP-CIDR,52.95.52.0/22,Proxy
IP-CIDR,52.95.62.0/24,Proxy
IP-CIDR,52.95.63.0/24,Proxy
IP-CIDR,52.95.100.0/22,Proxy
IP-CIDR,52.95.142.0/23,Proxy
IP-CIDR,52.95.144.0/24,Proxy
IP-CIDR,52.95.245.0/24,Proxy
IP-CIDR,52.95.246.0/24,Proxy
IP-CIDR,52.95.247.0/24,Proxy
IP-CIDR,52.95.251.0/24,Proxy
IP-CIDR,52.95.255.80/28,Proxy
IP-CIDR,52.95.255.96/28,Proxy
IP-CIDR,52.95.255.112/28,Proxy
IP-CIDR,52.119.224.0/21,Proxy
IP-CIDR,52.119.232.0/21,Proxy
IP-CIDR,52.200.0.0/13,Proxy
IP-CIDR,52.216.0.0/15,Proxy
IP-CIDR,52.218.128.0/18,Proxy
IP-CIDR,52.218.192.0/18,Proxy
IP-CIDR,52.219.20.0/22,Proxy
IP-CIDR,52.219.24.0/21,Proxy
IP-CIDR,52.219.80.0/20,Proxy
IP-CIDR,52.222.0.0/17,Proxy
IP-CIDR,54.67.0.0/16,Proxy
IP-CIDR,54.68.0.0/14,Proxy
IP-CIDR,54.80.0.0/13,Proxy
IP-CIDR,54.88.0.0/14,Proxy
IP-CIDR,54.92.128.0/17,Proxy
IP-CIDR,54.144.0.0/14,Proxy
IP-CIDR,54.148.0.0/15,Proxy
IP-CIDR,54.151.0.0/17,Proxy
IP-CIDR,54.152.0.0/16,Proxy
IP-CIDR,54.153.0.0/17,Proxy
IP-CIDR,54.156.0.0/14,Proxy
IP-CIDR,54.160.0.0/13,Proxy
IP-CIDR,54.172.0.0/15,Proxy
IP-CIDR,54.174.0.0/15,Proxy
IP-CIDR,54.176.0.0/15,Proxy
IP-CIDR,54.183.0.0/16,Proxy
IP-CIDR,54.184.0.0/13,Proxy
IP-CIDR,54.193.0.0/16,Proxy
IP-CIDR,54.196.0.0/15,Proxy
IP-CIDR,54.198.0.0/16,Proxy
IP-CIDR,54.200.0.0/15,Proxy
IP-CIDR,54.202.0.0/15,Proxy
IP-CIDR,54.204.0.0/15,Proxy
IP-CIDR,54.208.0.0/15,Proxy
IP-CIDR,54.210.0.0/15,Proxy
IP-CIDR,54.212.0.0/15,Proxy
IP-CIDR,54.214.0.0/16,Proxy
IP-CIDR,54.215.0.0/16,Proxy
IP-CIDR,54.218.0.0/16,Proxy
IP-CIDR,54.219.0.0/16,Proxy
IP-CIDR,54.221.0.0/16,Proxy
IP-CIDR,54.224.0.0/15,Proxy
IP-CIDR,54.226.0.0/15,Proxy
IP-CIDR,54.231.0.0/17,Proxy
IP-CIDR,54.231.160.0/19,Proxy
IP-CIDR,54.231.232.0/21,Proxy
IP-CIDR,54.234.0.0/15,Proxy
IP-CIDR,54.236.0.0/15,Proxy
IP-CIDR,54.239.2.0/23,Proxy
IP-CIDR,54.239.8.0/21,Proxy
IP-CIDR,54.239.16.0/20,Proxy
IP-CIDR,54.239.48.0/22,Proxy
IP-CIDR,54.239.64.0/21,Proxy
IP-CIDR,54.239.98.0/24,Proxy
IP-CIDR,54.239.104.0/23,Proxy
IP-CIDR,54.239.108.0/22,Proxy
IP-CIDR,54.240.196.0/24,Proxy
IP-CIDR,54.240.198.0/24,Proxy
IP-CIDR,54.240.202.0/24,Proxy
IP-CIDR,54.240.208.0/22,Proxy
IP-CIDR,54.240.212.0/22,Proxy
IP-CIDR,54.240.216.0/22,Proxy
IP-CIDR,54.240.228.0/23,Proxy
IP-CIDR,54.240.230.0/23,Proxy
IP-CIDR,54.240.232.0/22,Proxy
IP-CIDR,54.240.248.0/21,Proxy
IP-CIDR,54.241.0.0/16,Proxy
IP-CIDR,54.242.0.0/15,Proxy
IP-CIDR,54.244.0.0/16,Proxy
IP-CIDR,54.245.0.0/16,Proxy
IP-CIDR,67.202.0.0/18,Proxy
IP-CIDR,72.21.192.0/19,Proxy
IP-CIDR,72.44.32.0/19,Proxy
IP-CIDR,75.101.128.0/17,Proxy
IP-CIDR,96.127.0.0/17,Proxy
IP-CIDR,107.20.0.0/14,Proxy
IP-CIDR,172.96.97.0/24,Proxy
IP-CIDR,174.129.0.0/16,Proxy
IP-CIDR,176.32.96.0/21,Proxy
IP-CIDR,176.32.112.0/21,Proxy
IP-CIDR,176.32.120.0/22,Proxy
IP-CIDR,176.32.125.0/25,Proxy
IP-CIDR,184.72.0.0/18,Proxy
IP-CIDR,184.72.64.0/18,Proxy
IP-CIDR,184.72.128.0/17,Proxy
IP-CIDR,184.73.0.0/16,Proxy
IP-CIDR,184.169.128.0/17,Proxy
IP-CIDR,204.236.128.0/18,Proxy
IP-CIDR,204.236.192.0/18,Proxy
IP-CIDR,204.246.160.0/22,Proxy
IP-CIDR,205.251.224.0/22,Proxy
IP-CIDR,205.251.228.0/22,Proxy
IP-CIDR,205.251.232.0/22,Proxy
IP-CIDR,205.251.236.0/22,Proxy
IP-CIDR,205.251.240.0/22,Proxy
IP-CIDR,205.251.244.0/23,Proxy
IP-CIDR,205.251.247.0/24,Proxy
IP-CIDR,205.251.248.0/24,Proxy
IP-CIDR,205.251.255.0/24,Proxy
IP-CIDR,207.171.160.0/20,Proxy
IP-CIDR,207.171.176.0/20,Proxy
IP-CIDR,216.182.224.0/20,Proxy
IP-CIDR,23.20.0.0/14,Proxy
IP-CIDR,34.192.0.0/12,Proxy
IP-CIDR,35.160.0.0/13,Proxy
IP-CIDR,50.16.0.0/15,Proxy
IP-CIDR,50.18.0.0/16,Proxy
IP-CIDR,50.19.0.0/16,Proxy
IP-CIDR,50.112.0.0/16,Proxy
IP-CIDR,52.0.0.0/15,Proxy
IP-CIDR,52.2.0.0/15,Proxy
IP-CIDR,52.4.0.0/14,Proxy
IP-CIDR,52.8.0.0/16,Proxy
IP-CIDR,52.9.0.0/16,Proxy
IP-CIDR,52.10.0.0/15,Proxy
IP-CIDR,52.12.0.0/15,Proxy
IP-CIDR,52.14.0.0/16,Proxy
IP-CIDR,52.15.0.0/16,Proxy
IP-CIDR,52.20.0.0/14,Proxy
IP-CIDR,52.24.0.0/14,Proxy
IP-CIDR,52.32.0.0/14,Proxy
IP-CIDR,52.36.0.0/14,Proxy
IP-CIDR,52.40.0.0/14,Proxy
IP-CIDR,52.44.0.0/15,Proxy
IP-CIDR,52.52.0.0/15,Proxy
IP-CIDR,52.54.0.0/15,Proxy
IP-CIDR,52.70.0.0/15,Proxy
IP-CIDR,52.72.0.0/15,Proxy
IP-CIDR,52.86.0.0/15,Proxy
IP-CIDR,52.88.0.0/15,Proxy
IP-CIDR,52.90.0.0/15,Proxy
IP-CIDR,52.95.245.0/24,Proxy
IP-CIDR,52.95.246.0/24,Proxy
IP-CIDR,52.95.247.0/24,Proxy
IP-CIDR,52.95.251.0/24,Proxy
IP-CIDR,52.95.255.80/28,Proxy
IP-CIDR,52.95.255.96/28,Proxy
IP-CIDR,52.95.255.112/28,Proxy
IP-CIDR,52.200.0.0/13,Proxy
IP-CIDR,52.222.0.0/17,Proxy
IP-CIDR,54.67.0.0/16,Proxy
IP-CIDR,54.68.0.0/14,Proxy
IP-CIDR,54.80.0.0/13,Proxy
IP-CIDR,54.88.0.0/14,Proxy
IP-CIDR,54.92.128.0/17,Proxy
IP-CIDR,54.144.0.0/14,Proxy
IP-CIDR,54.148.0.0/15,Proxy
IP-CIDR,54.151.0.0/17,Proxy
IP-CIDR,54.152.0.0/16,Proxy
IP-CIDR,54.153.0.0/17,Proxy
IP-CIDR,54.156.0.0/14,Proxy
IP-CIDR,54.160.0.0/13,Proxy
IP-CIDR,54.172.0.0/15,Proxy
IP-CIDR,54.174.0.0/15,Proxy
IP-CIDR,54.176.0.0/15,Proxy
IP-CIDR,54.183.0.0/16,Proxy
IP-CIDR,54.184.0.0/13,Proxy
IP-CIDR,54.193.0.0/16,Proxy
IP-CIDR,54.196.0.0/15,Proxy
IP-CIDR,54.198.0.0/16,Proxy
IP-CIDR,54.200.0.0/15,Proxy
IP-CIDR,54.202.0.0/15,Proxy
IP-CIDR,54.204.0.0/15,Proxy
IP-CIDR,54.208.0.0/15,Proxy
IP-CIDR,54.210.0.0/15,Proxy
IP-CIDR,54.212.0.0/15,Proxy
IP-CIDR,54.214.0.0/16,Proxy
IP-CIDR,54.215.0.0/16,Proxy
IP-CIDR,54.218.0.0/16,Proxy
IP-CIDR,54.219.0.0/16,Proxy
IP-CIDR,54.221.0.0/16,Proxy
IP-CIDR,54.224.0.0/15,Proxy
IP-CIDR,54.226.0.0/15,Proxy
IP-CIDR,54.234.0.0/15,Proxy
IP-CIDR,54.236.0.0/15,Proxy
IP-CIDR,54.241.0.0/16,Proxy
IP-CIDR,54.242.0.0/15,Proxy
IP-CIDR,54.244.0.0/16,Proxy
IP-CIDR,54.245.0.0/16,Proxy
IP-CIDR,67.202.0.0/18,Proxy
IP-CIDR,72.44.32.0/19,Proxy
IP-CIDR,75.101.128.0/17,Proxy
IP-CIDR,96.127.0.0/17,Proxy
IP-CIDR,107.20.0.0/14,Proxy
IP-CIDR,174.129.0.0/16,Proxy
IP-CIDR,184.72.0.0/18,Proxy
IP-CIDR,184.72.64.0/18,Proxy
IP-CIDR,184.72.128.0/17,Proxy
IP-CIDR,184.73.0.0/16,Proxy
IP-CIDR,184.169.128.0/17,Proxy
IP-CIDR,204.236.128.0/18,Proxy
IP-CIDR,204.236.192.0/18,Proxy
IP-CIDR,216.182.224.0/20,Proxy
IP-CIDR,54.183.255.128/26,Proxy
IP-CIDR,54.241.32.64/26,Proxy
IP-CIDR,54.243.31.192/26,Proxy
IP-CIDR,54.244.52.192/26,Proxy
IP-CIDR,54.245.168.0/26,Proxy
IP-CIDR,107.23.255.0/26,Proxy
IP-CIDR,34.195.252.0/24,Proxy
IP-CIDR,35.162.63.192/26,Proxy
IP-CIDR,52.15.127.128/26,Proxy
IP-CIDR,52.52.191.128/26,Proxy

本文出自 Tech Trace,转载时请注明出处及相应链接。

本文永久链接: https://www.qiujiahui.com/2016/12/17/%e8%a7%a3%e5%86%b3super-mario-run%e5%9c%a8%e5%9b%bd%e5%86%85%e6%97%a0%e6%b3%95%e8%bf%9e%e6%8e%a5%e7%9a%84%e9%97%ae%e9%a2%98/

0

发表评论

电子邮件地址不会被公开。 必填项已用*标注

*

Ɣ回顶部
%d 博主赞过: