Last active
March 13, 2016 05:32
-
-
Save MirrorDM/6ecca5f1abba8887cb97 to your computer and use it in GitHub Desktop.
PAC for CERNET free ip. 教育网 免费地址 PAC
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function FindProxyForURL(url, host) { | |
var socks = "SOCKS5 127.0.0.1:8888; SOCKS 127.0.0.1:8888; DIRECT;"; | |
if (isInNet(dnsResolve(host), "1.51.0.0", "255.255.0.0") || isInNet(dnsResolve(host), "1.184.0.0", "255.254.0.0") || isInNet(dnsResolve(host), "42.244.0.0", "255.252.0.0") || isInNet(dnsResolve(host), "49.52.0.0", "255.252.0.0") || isInNet(dnsResolve(host), "49.120.0.0", "255.252.0.0") || isInNet(dnsResolve(host), "49.140.0.0", "255.254.0.0") || isInNet(dnsResolve(host), "49.208.0.0", "255.254.0.0") || isInNet(dnsResolve(host), "58.17.0.0", "255.255.0.0") || isInNet(dnsResolve(host), "58.24.0.0", "255.254.0.0") || isInNet(dnsResolve(host), "58.154.0.0", "255.254.0.0") || isInNet(dnsResolve(host), "58.192.0.0", "255.240.0.0") || isInNet(dnsResolve(host), "58.240.0.0", "255.254.0.0") || isInNet(dnsResolve(host), "59.32.0.0", "255.240.0.0") || isInNet(dnsResolve(host), "59.64.0.0", "255.240.0.0") || isInNet(dnsResolve(host), "60.0.0.0", "255.224.0.0") || isInNet(dnsResolve(host), "60.63.0.0", "255.255.0.0") || isInNet(dnsResolve(host), "61.28.0.0", "255.255.240.0") || isInNet(dnsResolve(host), "61.48.0.0", "255.248.0.0") || isInNet(dnsResolve(host), "61.128.0.0", "255.192.0.0") || isInNet(dnsResolve(host), "61.232.0.0", "255.252.0.0") || isInNet(dnsResolve(host), "61.236.0.0", "255.254.0.0") || isInNet(dnsResolve(host), "61.240.0.0", "255.252.0.0") || isInNet(dnsResolve(host), "101.4.0.0", "255.252.0.0") || isInNet(dnsResolve(host), "101.76.0.0", "255.254.0.0") || isInNet(dnsResolve(host), "110.64.0.0", "255.254.0.0") || isInNet(dnsResolve(host), "111.114.0.0", "255.254.0.0") || isInNet(dnsResolve(host), "111.116.0.0", "255.254.0.0") || isInNet(dnsResolve(host), "111.186.0.0", "255.254.0.0") || isInNet(dnsResolve(host), "113.54.0.0", "255.254.0.0") || isInNet(dnsResolve(host), "114.212.0.0", "255.254.0.0") || isInNet(dnsResolve(host), "114.214.0.0", "255.255.0.0") || isInNet(dnsResolve(host), "115.24.0.0", "255.252.0.0") || isInNet(dnsResolve(host), "115.154.0.0", "255.254.0.0") || isInNet(dnsResolve(host), "115.156.0.0", "255.254.0.0") || isInNet(dnsResolve(host), "115.158.0.0", "255.255.0.0") || isInNet(dnsResolve(host), "116.13.0.0", "255.255.0.0") || isInNet(dnsResolve(host), "116.56.0.0", "255.254.0.0") || isInNet(dnsResolve(host), "118.202.0.0", "255.254.0.0") || isInNet(dnsResolve(host), "118.228.0.0", "255.254.0.0") || isInNet(dnsResolve(host), "118.230.0.0", "255.255.0.0") || isInNet(dnsResolve(host), "120.94.0.0", "255.254.0.0") || isInNet(dnsResolve(host), "121.48.0.0", "255.254.0.0") || isInNet(dnsResolve(host), "121.52.160.0", "255.255.224.0") || isInNet(dnsResolve(host), "121.192.0.0", "255.252.0.0") || isInNet(dnsResolve(host), "121.248.0.0", "255.252.0.0") || isInNet(dnsResolve(host), "122.204.0.0", "255.252.0.0") || isInNet(dnsResolve(host), "125.216.0.0", "255.248.0.0") || isInNet(dnsResolve(host), "137.189.0.0", "255.255.0.0") || isInNet(dnsResolve(host), "140.113.0.0", "255.255.0.0") || isInNet(dnsResolve(host), "143.89.0.0", "255.255.0.0") || isInNet(dnsResolve(host), "144.214.0.0", "255.255.0.0") || isInNet(dnsResolve(host), "147.8.0.0", "255.255.0.0") || isInNet(dnsResolve(host), "152.101.0.0", "255.255.0.0") || isInNet(dnsResolve(host), "152.104.0.0", "255.255.0.0") || isInNet(dnsResolve(host), "158.132.0.0", "255.255.0.0") || isInNet(dnsResolve(host), "158.182.0.0", "255.255.0.0") || isInNet(dnsResolve(host), "159.226.0.0", "255.255.0.0") || isInNet(dnsResolve(host), "161.207.0.0", "255.255.0.0") || isInNet(dnsResolve(host), "162.105.0.0", "255.255.0.0") || isInNet(dnsResolve(host), "166.111.0.0", "255.255.0.0") || isInNet(dnsResolve(host), "167.139.0.0", "255.255.0.0") || isInNet(dnsResolve(host), "168.160.0.0", "255.255.0.0") || isInNet(dnsResolve(host), "175.185.0.0", "255.255.0.0") || isInNet(dnsResolve(host), "175.186.0.0", "255.254.0.0") || isInNet(dnsResolve(host), "180.84.0.0", "255.254.0.0") || isInNet(dnsResolve(host), "180.201.0.0", "255.255.0.0") || isInNet(dnsResolve(host), "180.208.0.0", "255.254.0.0") || isInNet(dnsResolve(host), "183.168.0.0", "255.254.0.0") || isInNet(dnsResolve(host), "183.170.0.0", "255.255.0.0") || isInNet(dnsResolve(host), "183.172.0.0", "255.252.0.0") || isInNet(dnsResolve(host), "192.86.104.0", "255.255.255.0") || isInNet(dnsResolve(host), "202.4.128.0", "255.255.224.0") || isInNet(dnsResolve(host), "202.38.0.0", "255.255.0.0") || isInNet(dnsResolve(host), "202.40.192.0", "255.255.224.0") || isInNet(dnsResolve(host), "202.45.32.0", "255.255.224.0") || isInNet(dnsResolve(host), "202.75.64.0", "255.255.224.0") || isInNet(dnsResolve(host), "202.84.16.0", "255.255.254.0") || isInNet(dnsResolve(host), "202.95.0.0", "255.255.224.0") || isInNet(dnsResolve(host), "202.96.0.0", "255.240.0.0") || isInNet(dnsResolve(host), "202.112.0.0", "255.248.0.0") || isInNet(dnsResolve(host), "202.120.0.0", "255.254.0.0") || isInNet(dnsResolve(host), "202.122.32.0", "255.255.240.0") || isInNet(dnsResolve(host), "202.127.0.0", "255.255.192.0") || isInNet(dnsResolve(host), "202.127.128.0", "255.255.128.0") || isInNet(dnsResolve(host), "202.130.0.0", "255.255.224.0") || isInNet(dnsResolve(host), "202.130.224.0", "255.255.224.0") || isInNet(dnsResolve(host), "202.131.208.0", "255.255.240.0") || isInNet(dnsResolve(host), "202.189.96.0", "255.255.224.0") || isInNet(dnsResolve(host), "202.192.0.0", "255.240.0.0") || isInNet(dnsResolve(host), "203.81.16.0", "255.255.240.0") || isInNet(dnsResolve(host), "203.87.224.0", "255.255.224.0") || isInNet(dnsResolve(host), "203.93.0.0", "255.255.0.0") || isInNet(dnsResolve(host), "203.128.128.0", "255.255.224.0") || isInNet(dnsResolve(host), "203.192.0.0", "255.255.224.0") || isInNet(dnsResolve(host), "203.207.64.0", "255.255.192.0") || isInNet(dnsResolve(host), "203.207.128.0", "255.255.128.0") || isInNet(dnsResolve(host), "203.208.0.0", "255.255.224.0") || isInNet(dnsResolve(host), "203.212.0.0", "255.255.240.0") || isInNet(dnsResolve(host), "210.5.0.0", "255.255.224.0") || isInNet(dnsResolve(host), "210.12.0.0", "255.254.0.0") || isInNet(dnsResolve(host), "210.14.160.0", "255.255.224.0") || isInNet(dnsResolve(host), "210.14.192.0", "255.255.192.0") || isInNet(dnsResolve(host), "210.15.0.0", "255.255.128.0") || isInNet(dnsResolve(host), "210.15.128.0", "255.255.192.0") || isInNet(dnsResolve(host), "210.21.0.0", "255.255.0.0") || isInNet(dnsResolve(host), "210.22.0.0", "255.255.0.0") || isInNet(dnsResolve(host), "210.25.0.0", "255.255.128.0") || isInNet(dnsResolve(host), "210.25.128.0", "255.255.192.0") || isInNet(dnsResolve(host), "210.26.0.0", "255.254.0.0") || isInNet(dnsResolve(host), "210.28.0.0", "255.252.0.0") || isInNet(dnsResolve(host), "210.32.0.0", "255.240.0.0") || isInNet(dnsResolve(host), "210.51.0.0", "255.255.0.0") || isInNet(dnsResolve(host), "210.52.0.0", "255.254.0.0") || isInNet(dnsResolve(host), "210.72.0.0", "255.252.0.0") || isInNet(dnsResolve(host), "210.76.0.0", "255.254.0.0") || isInNet(dnsResolve(host), "210.78.0.0", "255.255.0.0") || isInNet(dnsResolve(host), "210.79.224.0", "255.255.224.0") || isInNet(dnsResolve(host), "210.82.0.0", "255.254.0.0") || isInNet(dnsResolve(host), "210.192.96.0", "255.255.224.0") || isInNet(dnsResolve(host), "211.64.0.0", "255.248.0.0") || isInNet(dnsResolve(host), "211.80.0.0", "255.240.0.0") || isInNet(dnsResolve(host), "211.96.0.0", "255.248.0.0") || isInNet(dnsResolve(host), "211.136.0.0", "255.248.0.0") || isInNet(dnsResolve(host), "211.144.0.0", "255.240.0.0") || isInNet(dnsResolve(host), "211.160.0.0", "255.248.0.0") || isInNet(dnsResolve(host), "218.0.0.0", "255.224.0.0") || isInNet(dnsResolve(host), "218.56.0.0", "255.248.0.0") || isInNet(dnsResolve(host), "218.64.0.0", "255.224.0.0") || isInNet(dnsResolve(host), "218.96.0.0", "255.252.0.0") || isInNet(dnsResolve(host), "218.104.0.0", "255.252.0.0") || isInNet(dnsResolve(host), "218.108.0.0", "255.255.0.0") || isInNet(dnsResolve(host), "218.192.0.0", "255.240.0.0") || isInNet(dnsResolve(host), "218.240.0.0", "255.248.0.0") || isInNet(dnsResolve(host), "219.72.0.0", "255.255.0.0") || isInNet(dnsResolve(host), "219.128.0.0", "255.224.0.0") || isInNet(dnsResolve(host), "219.216.0.0", "255.248.0.0") || isInNet(dnsResolve(host), "219.224.0.0", "255.240.0.0") || isInNet(dnsResolve(host), "219.242.0.0", "255.254.0.0") || isInNet(dnsResolve(host), "219.244.0.0", "255.252.0.0") || isInNet(dnsResolve(host), "220.160.0.0", "255.224.0.0") || isInNet(dnsResolve(host), "220.192.0.0", "255.240.0.0") || isInNet(dnsResolve(host), "220.234.0.0", "255.255.0.0") || isInNet(dnsResolve(host), "220.248.0.0", "255.252.0.0") || isInNet(dnsResolve(host), "220.252.0.0", "255.255.0.0") || isInNet(dnsResolve(host), "221.0.0.0", "255.240.0.0") || isInNet(dnsResolve(host), "221.130.0.0", "255.254.0.0") || isInNet(dnsResolve(host), "221.137.0.0", "255.255.0.0") || isInNet(dnsResolve(host), "221.172.0.0", "255.252.0.0") || isInNet(dnsResolve(host), "221.192.0.0", "255.248.0.0") || isInNet(dnsResolve(host), "221.200.0.0", "255.252.0.0") || isInNet(dnsResolve(host), "221.204.0.0", "255.254.0.0") || isInNet(dnsResolve(host), "221.208.0.0", "255.252.0.0") || isInNet(dnsResolve(host), "221.212.0.0", "255.255.0.0") || isInNet(dnsResolve(host), "221.214.0.0", "255.254.0.0") || isInNet(dnsResolve(host), "221.216.0.0", "255.248.0.0") || isInNet(dnsResolve(host), "221.224.0.0", "255.240.0.0") || isInNet(dnsResolve(host), "222.16.0.0", "255.240.0.0") || isInNet(dnsResolve(host), "222.32.0.0", "255.224.0.0") || isInNet(dnsResolve(host), "222.64.0.0", "255.224.0.0") || isInNet(dnsResolve(host), "222.132.0.0", "255.252.0.0") || isInNet(dnsResolve(host), "222.136.0.0", "255.248.0.0") || isInNet(dnsResolve(host), "222.160.0.0", "255.252.0.0") || isInNet(dnsResolve(host), "222.168.0.0", "255.248.0.0") || isInNet(dnsResolve(host), "222.176.0.0", "255.240.0.0") || isInNet(dnsResolve(host), "222.192.0.0", "255.240.0.0") || isInNet(dnsResolve(host), "222.208.0.0", "255.248.0.0") || isInNet(dnsResolve(host), "222.216.0.0", "255.254.0.0") || isInNet(dnsResolve(host), "222.218.0.0", "255.255.0.0") || isInNet(dnsResolve(host), "222.222.0.0", "255.254.0.0") || isInNet(dnsResolve(host), "222.240.0.0", "255.248.0.0") || isInNet(dnsResolve(host), "223.2.0.0", "255.254.0.0") || isInNet(dnsResolve(host), "223.128.0.0", "255.254.0.0")) return "DIRECT"; | |
return socks; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
free ip list : http://www.nic.edu.cn/RS/ipstat/internalip/