Hi,

Can someone tell me if this is ok? What I want to do is bypass border
for
internal addresses/domaines.

function FindProxyForURL(url, host)
{
if (isPlainHostName(host))
return "DIRECT";
else
if (dnsDomainIs(host, ".domainX.com"))
return "DIRECT";
else
if (localHostOrDomainIs(host, "domainY.com"))
return "DIRECT";
else
if (isInNet (host, "172.16.0.0", "255.255.0.0"))
return "DIRECT";
else
if (isInNet (host, "172.17.0.0", "255.255.0.0"))
return "DIRECT";
else
if (isInNet (host, "172.18.0.0", "255.255.0.0"))
return "DIRECT";
else

return "PROXY proxy:8080; DIRECT";
}