Pretty straightforward as far as I can tell:
function FindProxyForURL(url, host) { if( isInNet(host,"192.168.15.0","255.255.255.0") || isInNet(host,"10.120.0.0","255.255.0.0") || isInNet(host,"10.180.0.0","255.255.0.0") ) { return "PROXY proxy:8080"; } else { return "DIRECT"; } }
I have another one that basically reverses the DIRECT and PROXY return values.
Pretty straightforward as far as I can tell:
function FindProxyForURL (url, host)
isInNet( host,"192. 168.15. 0","255. 255.255. 0") ||
isInNet( host,"10. 120.0.0" ,"255.255. 0.0") ||
isInNet( host,"10. 180.0.0" ,"255.255. 0.0")
return "PROXY proxy:8080";
return "DIRECT";
{
if(
)
{
}
else
{
}
}
I have another one that basically reverses the DIRECT and PROXY return values.