I tried this code locally and it works as it should:
function FindProxyForURL(url, host)
{
//The following URLs will not be proxied
if (shExpMatch(url, "*unseredomain.local*"))
{return "DIRECT";}
if (shExpMatch(url, "*192.168.x.206*"))
{return "DIRECT";}
// Set the desired proxy server for local addresses
if (isInNet(myIpAddress(), "192.168.x.0", "255.255.255.0"))
{return "PROXY 192.168.x.206:8080" ;}
if (isInNet(myIpAddress(), "192.168.xx.0", "255.255.255.0"))
{return "PROXY 192.168.x.206:8080" ;}
if (isInNet(myIpAddress(), "192.168.***.0", "255.255.255.0"))
{return "PROXY 192.168.x.206:8080" ;}
// For all other networks, do not proxy
return "DIRECT" ;
}
But it doesn`t work when i enter this code in our ASG.
This is the link that i enter in the IE settings:
192.168.x.206:8080/wpad.dat
What do i wrong?
This thread was automatically locked due to age.