|
PAC files
Hi, I have a Javascript .pac file being used as an autoconfiguration proxy script that points to my proxy server. I am trying to test something & I need to have the IP address returned as a messagebox or display, like a cout in C++, is there a way to accomplish this in Javascript pac files?
I thought just using else return (myIpAddress) would work but it does not. any help is greatly appreciated.
Here is my code:
function FindProxyForURL(url, host)
{
if (isInNet(myIpAddress(), "192.168.1.0", "255.255.255.0"))
return "PROXY 192.168.1.1:8080";
}
|