Thread: PAC files
View Single Post
Old 11-06-2006, 11:10 AM   #1 (permalink)
krisl100
krisl100
 
Join Date: Oct 2006
Location: Montreal
Posts: 34
krisl100 is on a distinguished road
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";

}
krisl100 is offline   Reply With Quote