資源描述:
《制絨和絲網(wǎng)印刷111》由會(huì)員上傳分享,免費(fèi)在線閱讀,更多相關(guān)內(nèi)容在行業(yè)資料-天天文庫。
1、functionFindProxyForURL(url,host){if(isPlainHostName(host))return'DIRECT';if(!shExpMatch(url,'http*'))return'DIRECT';varip=dnsResolve(host);//nodnsresultif(!ip)return'PROXY127.0.0.1:8083;';//ipv6if(shExpMatch(ip,'*:*'))return'DIRECT';//localelseif(isInNet(ip,'127.0.0.0','255.0.0.0'))r
2、eturn'DIRECT';elseif(isInNet(ip,'10.0.0.0','255.0.0.0'))return'DIRECT';elseif(isInNet(ip,'192.168.0.0','255.255.0.0'))return'DIRECT';elseif(isInNet(ip,'172.16.0.0','255.240.0.0'))return'DIRECT';elseif(isInNet(ip,'169.254.0.0','255.255.0.0'))return'DIRECT';//videoruleselseif(shExpMatch
3、(url,'*.flv'))return'PROXY'+host+'.local.acc.sogou.com:8081;';elseif(shExpMatch(url,'*.mp4'))return'PROXY'+host+'.local.acc.sogou.com:8081;';elseif(shExpMatch(url,'http:*/flv/*.flv?*&key=*'))return'PROXY'+host+'.local.acc.sogou.com:8081;';elseif(shExpMatch(url,'http:*/mp4/*.f4v?*&key=
4、*'))return'PROXY'+host+'.local.acc.sogou.com:8081;';elseif(shExpMatch(url,'*.flv?start=*'))return'PROXY'+host+'.local.acc.sogou.com:8081;';elseif(shExpMatch(url,'*.mp4?start=*'))return'PROXY'+host+'.local.acc.sogou.com:8081;';elseif(isInNet(ip,'58.154.0.0','255.254.0.0'))return'DIRECT
5、';elseif(isInNet(ip,'58.192.0.0','255.254.0.0'))return'DIRECT';elseif(isInNet(ip,'58.194.0.0','255.254.0.0'))return'DIRECT';elseif(isInNet(ip,'58.196.0.0','255.254.0.0'))return'DIRECT';elseif(isInNet(ip,'58.198.0.0','255.254.0.0'))return'DIRECT';elseif(isInNet(ip,'58.200.0.0','255.248
6、.0.0'))return'DIRECT';elseif(isInNet(ip,'59.64.0.0','255.252.0.0'))return'DIRECT';elseif(isInNet(ip,'59.68.0.0','255.252.0.0'))return'DIRECT';elseif(isInNet(ip,'59.72.0.0','255.254.0.0'))return'DIRECT';elseif(isInNet(ip,'59.74.0.0','255.254.0.0'))return'DIRECT';elseif(isInNet(ip,'59.7
7、6.0.0','255.255.0.0'))return'DIRECT';elseif(isInNet(ip,'59.77.0.0','255.255.0.0'))return'DIRECT';elseif(isInNet(ip,'59.78.0.0','255.254.0.0'))return'DIRECT';elseif(isInNet(ip,'110.64.0.0','255.254.0.0'))return'DIRECT';elseif(isInNet(ip,'111.114.0.0','255.254.0.0'))return'DIRECT';elsei
8、f(isI