代理总是失败
function FindProxyForURL( url, host )
{
url = url.toLowerCase();
host = host.toLowerCase();
if ( shExpMatch(url, "*.getlantern.org") || host == "getlantern.org"
|| shExpMatch(url, "*.getpocket.com") || host == "getpocket.com"
|| shExpMatch(url, "*.ggpht.com") || host == "ggpht.com"
|| shExpMatch(url, "*.github.com") || host == "github.com"
|| shExpMatch(url, "*.github.io") || host == "github.io"
|| shExpMatch(url, "*.githubusercontent.com") || host == "githubusercontent.com"
|| shExpMatch(url, "*.gitlab.com") || host == "gitlab.com"
|| shExpMatch(url, "*.gmail.com") || host == "gmail.com"
|| shExpMatch(url, "*.goo.gl") || host == "goo.gl"
|| shExpMatch(url, "*.google-analytics.com") || host == "google-analytics.com"
|| shExpMatch(url, "*.google.com") || host == "google.com"
|| shExpMatch(url, "*.googleapis.com") || host == "googleapis.com"
|| shExpMatch(url, "*.googlesyndication.com") || host == "googlesyndication.com"
|| shExpMatch(url, "*.googleusercontent.com") || host == "googleusercontent.com"
|| shExpMatch(url, "*.googlevideo.com") || host == "googlevideo.com" )
{
return "SOCKS5 127.0.0.1:8016";
}
else
{
return "DIRECT";
}
}