On Wed, 1 Sep 1999, Tony Nugent wrote:
>The real solution is to fix netscape, 

Perhaps, but:

>but one way we are attempting to
>resolve this is to specifically mention "localhost" in the proxy
>autoconfig file to do make it return DIRECT in this case.

This should be done anyway.

>function FindProxyForURL(url, host)
>  {
>    if (isPlainHostName(host) ||

This should catch the name "localhost", as it's a plain host name. This line
should make it so that any host name without a dot is not proxied.

>        isPlainHostName("localhost") ||

This line is bad. It'll make it always return "DIRECT" because the hard-coded
string "localhost" is a plain host name. Get rid of it, and rely on the
previous line (which will catch "localhost" anyway).

>        dnsDomainIs(host, ".usq.edu.au"))

I assume this is your locl domain, in which case this line is good.

>      return "DIRECT";
>    else if (isInNet(host, "127.0.0.1", "255.0.0.0"))

Change the address to "127.0.0.0", as that's really what the network address
for "localhost" is. The mask (255.0.0.0) is correct.

>      return "DIRECT";
>    else 
>      return "PROXY proxy.usq.edu.au:8000; PROXY proxy1.usq.edu.au:8000; ;

I suspect that the last semicolon should be a double-quote.

>  }

-- 
Dave Mielke           | 856 Grenon Avenue | I believe that the Bible is the
Phone: 1-613-726-0014 | Ottawa, Ontario   | Word of God. Please contact me
EMail: [EMAIL PROTECTED] | Canada  K2B 6G3   | if you're concerned about Hell.

Reply via email to