资源描述:
《学习心得体会1(换岗能力).docx》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、functionFindProxyEorURL(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,J127.0.0.0,,J
2、255.0.0.0,))return’DIRECT”;elseif(isInNet(ip,TO.0.0.0','255.0.0.0'))return'DIRECT';elseif(isInNet(ip,1192.16&0.O','255.255.0.O'))return'DIRECT';elseif(isInNet(ip,'172.16.0.0','255.240.0.0'))return'DIRECT';elseif(isInNet(ip「169.254.0.0’J255.255.0.O'))return'DIRECT';//vide
3、oruleselseif(shExpMatch(url,'*.flv'))return'PROXY,+host'•loca1・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
4、(url,'http:*/mp4/*.f4v?*&key=*'))return'PROXY'+host'・local,acc・sogou・com:8081/;hostireturn'PROXY++++elseif(shExpMatch(url,'*•f1v?start二*,))'•local,acc.sogou.com:8081;elseif(shExpMatch(url,'*•mp4?start=*>))'•local,acc・sogou.com:8081/;(isInNet(ip,'58.154.0.O','255.254.0.O'
5、))(isTnNet(ip,'5&192.0.O','255.254.0.O'))(isInNet(ip,'5&194.0.O','255.254.0.O'))(isInNet(ip,'5&196.0.O','255.254.0・O'))(isInNet(ip,'5&19&0.O','255.254.0.O'))(isInNet(ip,'58.200.0.O','255.248.0.O'))(isTnNet(ip,'59.64.0.O','255.252.0.O'))(isInNet(ip,'59.6&0.O','255.252.0.O
6、'))(isInNet(ip,'59.72.0.O','255.254.0.O'))(isInNet(ip,'59.74.0.O','255.254.0.O'))(isInNet(ip,'59.76.0.O','255.255.0.O'))(isTnNet(ip,'59.77.0.O','255.255.0.O'))(isTnNet(ip,'59.7&0.O','255.254.0.O'))return'PROXYhostelse辻else辻elseifelseifelseifelse辻else辻elseifelseifelseifel
7、se辻else辻elseifelseifelseifelse辻else辻:returnreturnreturnreturnreturnreturnreturnreturnreturnreturnreturnreturnreturn'DIRECT,'DIRECT''DIRECT,'DIRECT,'DIRECT''DIRECT''DTRECV;'DIRECT,;'DIRECT';'DIRECT';'DIRECT,;'DTRECV;'DTRECT';(isInNet(ip,'110.64.0.O','255.254.0・O'))return,
8、D1RECT,;(isInNet(ip,T11.114.0.O','255.254.0.O'))return'DIRECT';(isInNet(ip,'111.116.0.O','255.254.0.O')