Would it be possible to try this?
Code:
function FindProxyForURL(url, host)
{
// -----------------------------------------------------------------------------
// Declare proxy strings as variables
// -----------------------------------------------------------------------------
var capitaproxy = "PROXY 10.112.5.193:80";
var no_proxy = "DIRECT";
// -----------------------------------------------------------------------------
// Some proxies may have issues with mixed-case URLs, so change host variable to
// all lower case, and resolve the host IP to reduce DNS lookups later
// -----------------------------------------------------------------------------
host = host.toLowerCase();
var resolved_ip = dnsResolve(host);
// -----------------------------------------------------------------------------
// If URL has no dots in host name, send traffic direct
// -----------------------------------------------------------------------------
if (isPlainHostName(host))
{
return no_proxy;
}
// -----------------------------------------------------------------------------
// IPs not to proxy
// -----------------------------------------------------------------------------
// If destination is to an RFC 1918 IP, return direct:
if (isInNet(resolved_ip, "10.0.0.0", "255.0.0.0") ||
isInNet(resolved_ip, "172.16.0.0", "255.240.0.0") ||
isInNet(resolved_ip, "192.168.0.0", "255.255.0.0") ||
isInNet(resolved_ip, "127.0.0.0", "255.255.255.0"))
{
return no_proxy;
}
// -----------------------------------------------------------------------------
// IPs to proxy
// -----------------------------------------------------------------------------
// If request matches certain hosts in our IP range, return capitaproxy:
if (isInNet(resolved_ip, "172.16.4.0", "255.255.252.0") ||
isInNet(resolved_ip, "172.16.128.0", "255.255.252.0") ||
isInNet(resolved_ip, "172.16.140.0", "255.255.252.0") ||
isInNet(resolved_ip, "172.16.141.0", "255.255.252.0"))
{
return capitaproxy;
}
// -----------------------------------------------------------------------------
// Hosts not to proxy
// -----------------------------------------------------------------------------
// If request matches, return direct:
if (shExpMatch(host, "proxy") ||
shExpMatch(host, "localhost") ||
shExpMatch(host, "*fp-av*") ||
shExpMatch(host, "*fp-av.falinge.int") ||
shExpMatch(host, "*fp-wsus:9675") ||
shExpMatch(host, "dm-msw01.rochdale.edu.local") ||
shExpMatch(host, "sta-xendesktop.lea.edu.local"))
{
return no_proxy;
}
// -----------------------------------------------------------------------------
// Default return direct rule
// -----------------------------------------------------------------------------
// If the request matches no other parsing rules, return direct:
else
// javascript:alert ("PAC finished parsing for: " + host + "\nFrom IP: " + myIpAddress() + "\nReturning: " + no_proxy);
return no_proxy;
}