Proxy Auto Config file
Hi Guys,
I am trying to write the PAC file, which will enable/disable proxy based on the DNS resolution. But this is not working. Can anyone guide me in correct direction.
this script should check if DNS (abc.com) is resolvable then go thru proxy if not then direct.
This is what i have so far:
function FindProxyForURL(url, host)
{
if (isPlainHostName(host) ||
dnsDomainIs(host, "abc.net") ||
isResolvable(host))
return "PROXY proxy.abc.net:8080";
else
return "DIRECT";
}
Thanks,
0 Comments
[ + ] Show comments
Answers (0)
Please log in to answer
Be the first to answer this question