I've just re-set up my auto proxy file on a new server after I migrated from a win 2k server to win 2003. I noticed it was really slow when it was using the auto proxy file. I'm not sure if it was this slow before. This is my old wpad.dat and proxy.pac file:
This should work out if the destination has a local IP address and, if not, send it to the proxy.Code:function FindProxyForURL(url,host) { if(isPlainHostName(host)|| isInNet(host,"10.39.0.0","255.255.254.0")) return "DIRECT"; else return "PROXY 10.39.208.69:8080; DIRECT"; }
After some fiddling, I took out the bit that works out if it is local and now it runs fine:
But now, of course, if I try to access a local resource it can't find it.Code:function FindProxyForURL(url,host) { return "PROXY proxy:8080; DIRECT"; }
Is there a more efficient way of writing my original file?
(I need to use automatically detect settings, so other GP or reg based methods are no good).



LinkBack URL
About LinkBacks
Reply With Quote

