Douglas Sterner wrote:
> Using Squid 2.5 Stable 9 on Suse 9.3 and NTLM auth we are having
> trouble rendering larger pdf files when using automatically detect on
> IE 6. If we hard code the proxy it seems to work fine. Could someone
> look over my new wpad.dat and point out my errors. IP's were changed
> to protect the innocent.
>
> Thanks
>
> Douglas Sterner
>
>
> function FindProxyForURL(url, host)
> {
> //if name is in our domain, or starts with 192.168.999. don't use proxy
> if(isPlainHostName(host) ||
> dnsDomainIs(host,".mydomain.lcl") ||
> host.substring(0,12)=="192.168.999." ))
> return "DIRECT";
> else if (isInNet(myIpAddress(), "192.168.998.0", "255.255.255.0")) //A
> return "PROXY 192.168.998.3:3128";
> else if (isInNet(myIpAddress(), "192.168.997.0", "255.255.255.0")) //B
> return "PROXY 192.168.997.3:3128";
> else if (isInNet(myIpAddress(), "192.168.996.0", "255.255.255.0")) //C
> return "PROXY 192.168.996.3:3128";
> else if (isInNet(myIpAddress(), "192.168.995.0", "255.255.255.0")) //D
> return "PROXY 192.168.996.3:3128";
> else if (isInNet(myIpAddress(), "192.168.994.0", "255.255.255.0")) //E
> return "PROXY 192.168.996.3:3128";
> else
> return "DIRECT";
> }
>
Have you tried encapsulating each if/else if block within '{' and '}' ?
Like follows.
if(isPlainHostName(host) ||
dnsDomainIs(host,".mydomain.lcl") ||
host.substring(0,12)=="192.168.99." )) {
return "DIRECT"; }
etc etc.
Peter
Received on Thu Jan 12 2006 - 17:52:12 MST
This archive was generated by hypermail pre-2.1.9 : Wed Feb 01 2006 - 12:00:01 MST