/***************************************************************************** * wpad.dat Beispiel für zwei Standorte und ein paar extraserver: * * lokale domain: my.dom.ain * * hauptproxy -> Zentrale -> Netz: 192.168.0.0 * * nebenproxy -> Filiale -> Netz: 172.19.100.0 * * Author: Richard Borwinius * * E-Mail: richard@borwinius * * * *****************************************************************************/ function FindProxyForURL(url, host) { if (isPlainHostName(host) || dnsDomainIs(host,".my.dom.ain")) {return "DIRECT";} if (shExpMatch(url,"http://192.168.*")) {return "DIRECT";} if (shExpMatch(url,"http://srv*")) {return "DIRECT";} if (shExpMatch(url,"http://sharep*")) {return "DIRECT";} if (isInNet(host, "172.19.10.0", "255.255.255.0")) {return "PROXY nebenproxy.my.dom.ain:8080";} else { return "PROXY hauptproxy.my.dom.ain:8080";} }