ie
file://d:/PersonalSet/agent.pac
火狐
file:///d:/PersonalSet/agent.pac
function FindProxyForURL(url, host)
{
if (isPlainHostName(host))
{
return "DIRECT";
}
if (isInNet(host, "10.0.0.0", "255.0.0.0"))
{
return "DIRECT";
}
if (shExpMatch(host,"*.company.com"))
{
return "DIRECT";
}
// if (isResolvable(host))
// {
// return "DIRECT";
// }
return "PROXY proxy.com:8080";
}
原文地址:http://www.cnblogs.com/dongzhiquan/p/3789388.html