function FindProxyForURL(url, host) { if (dnsDomainIs(host, ".mydomain.com")) return "DIRECT"; else if (isPlainHostName(host)) return "DIRECT"; else if (host == "localhost") return "DIRECT"; else if (shExpMatch(host, "127.*")) return "DIRECT"; else if (shExpMatch(host, "10.0.0.*") ) return "DIRECT"; else return "PROXY 10.0.0.1:3128"; }
This way no DNS queries are done during proxy resolution.
function FindProxyForURL (url, host) e(host) )
{
if (dnsDomainIs(host, ".mydomain.com"))
return "DIRECT";
else
if (isPlainHostNam
return "DIRECT";
else
if (host == "localhost")
return "DIRECT";
else
if (shExpMatch(host, "127.*"))
return "DIRECT";
else
if (shExpMatch(host, "10.0.0.*") )
return "DIRECT";
else
return "PROXY 10.0.0.1:3128";
}
This way no DNS queries are done during proxy resolution.