Jump to content

Recommended Posts

Posted

Hello,

 

Can anyone see anything wrong with this PAC file:

 

function FindProxyForURL(url, host)
{
if ((host==”localhost”) ||
shExpMatch(host, “*localhost.*”) ||
shExpMatch(host, “10.10.10.0/20″) ||
shExpMatch(host, “17.0.0.0/8″) ||
(host == “127.0.0.1”))
{
return “DIRECT”;
}
return “PROXY proxy.LEA.net:80″
}

 

I want my iPads to do direct to all local addresses and use a proxy for everything else.

 

Rob

Posted

function FindProxyForURL(url, host)
{
if ((host==”localhost”) ||
shExpMatch(host, “*localhost.*”) ||
shExpMatch(host, “10.10.10.0/20″) ||
shExpMatch(host, “17.0.0.0/8″) ||
(host == “127.0.0.1”))
{
return “DIRECT”;
}
return “PROXY proxy.LEA.net:80″;
}

 

You are missing a ";" from the last line.

  • Thanks 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...