{"action":"opened","issue":{"url":"https://api.github.com/repos/bannedbook/fanqiang/issues/35","repository_url":"https://api.github.com/repos/bannedbook/fanqiang","labels_url":"https://api.github.com/repos/bannedbook/fanqiang/issues/35/labels{/name}","comments_url":"https://api.github.com/repos/bannedbook/fanqiang/issues/35/comments","events_url":"https://api.github.com/repos/bannedbook/fanqiang/issues/35/events","html_url":"https://github.com/bannedbook/fanqiang/issues/35","id":191946297,"number":35,"title":"请问pac翻墙中为何要屏蔽360","user":{"login":"178620086","id":8434253,"avatar_url":"https://avatars.githubusercontent.com/u/8434253?v=3","gravatar_id":"","url":"https://api.github.com/users/178620086","html_url":"https://github.com/178620086","followers_url":"https://api.github.com/users/178620086/followers","following_url":"https://api.github.com/users/178620086/following{/other_user}","gists_url":"https://api.github.com/users/178620086/gists{/gist_id}","starred_url":"https://api.github.com/users/178620086/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/178620086/subscriptions","organizations_url":"https://api.github.com/users/178620086/orgs","repos_url":"https://api.github.com/users/178620086/repos","events_url":"https://api.github.com/users/178620086/events{/privacy}","received_events_url":"https://api.github.com/users/178620086/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-11-28T08:35:45Z","updated_at":"2016-11-28T08:35:45Z","closed_at":null,"body":"刚刚看了下代码貌似屏蔽了360，和360搜索。请问这是出于什么问题才这样的呢\r\n`function FindProxyForURL(url, host) {\r\n    if (host == \"www.haosou.com\") {\r\n        return \"PROXY 127.0.0.1:80\";\r\n    }\r\n\r\n    var suffix;\r\n    var pos = host.lastIndexOf('.');\r\n    while(1) {\r\n        suffix = host.substring(pos + 1);\r\n        if (suffix == \"360.cn\")\r\n            if (url.indexOf('http://') == 0)\r\n                return \"PROXY 127.0.0.1:80\";\r\n        if (hasOwnProperty.call(domains, suffix)) {\r\n        \t\tvar myip=myIpAddress();\r\n        \t\tvar ipint=ip2int(myip);\r\n        \t\tvar ii = ipint % servlist.length;\r\n        \t\tif(ii==servlist.length-1)\r\n        \t\t\tvar proxyRet=servlist[ii]+servlist[0];\r\n        \t\telse\r\n        \t\t\tvar proxyRet=servlist[ii]+servlist[ii+1];\r\n        \t\t\r\n        \t\t//alert(proxyRet);\r\n        \t\treturn proxyRet;\r\n        }\r\n        if (pos <= 0) {\r\n            break;\r\n        }\r\n        pos = host.lastIndexOf('.', pos - 1);\r\n    }\r\n    return direct;\r\n}`"}}
{"actor":{"display_login":"178620086"}}