I'm testing a little pac file I made to switch proxies between the
company one (when I'm on the company network) or none, when I'm at
home. The browsers seem to be working, but pactester refuses to read
my file. I get:
c:\>pactester -u
http://www.google.com -p c:\windows\myautoconfig.pac
JSERROR: c:\windows\myautoconfig.pac:3:
SyntaxError: missing : after property id
Could not parse pac file: c:\windows\myautoconfig.pac
My file looks like this (company name and ip address altered):
function FindProxyForURL(url, host) {
if (isInNet(myIpAddress(), "x.y.0.0", "255.255.0.0"))
{return "PROXY
someproxy.mycompany.com";} else return {"DIRECT";}
}
What's wrong with my file, and why won't pactester parse it? I assume
the :3: in the error message refers to the line in the script, but I
can't see anything wrong there.
Thanks
Nick