function FindProxyForURL(url, host) { if (shExpMatch(host, "debian.unibw-hamburg.de*")) { return "PROXY 139.11.6.62:3128";} if (isPlainHostName(host)) {return "DIRECT";} if ( shExpMatch(host, "*.unibw-hamburg.de*")) { return "DIRECT"; } if ( shExpMatch(host, "*.hsu-hh.de*")) { return "DIRECT"; } if ( shExpMatch(host, "*.hsuhh.de*")) { return "DIRECT"; } if ( shExpMatch(host, "*.hsu-hamburg.de*")) { return "DIRECT"; } if ( shExpMatch(host, "*.hsu-bibliothek.de*")) { return "DIRECT"; } if ( shExpMatch(host, "127.0.0.*")) { return "DIRECT"; } if ( shExpMatch(host, "localhost")) { return "DIRECT"; } if ( shExpMatch(host, "139.11.3.*")) { return "DIRECT"; } if ( shExpMatch(host, "139.11.4.*")) { return "DIRECT"; } if (url.substring(0, 14) == "http://10.254.") { return "DIRECT"; } if (url.substring(0, 14) == "http://opsisc:") { return "DIRECT"; } if ( isInNet(myIpAddress(), "139.11.44.0", "255.255.252.0")) { return "DIRECT"; } if ( isInNet(myIpAddress(), "139.11.48.0", "255.255.248.0")) { return "DIRECT"; } if ( isInNet(myIpAddress(), "139.11.120.0", "255.255.248.0")) { return "DIRECT"; } if ( isInNet(myIpAddress(), "139.11.128.0", "255.255.128.0")) { return "DIRECT"; } if ( shExpMatch(url, "file://*") ) { return "DIRECT"; } if ( isInNet(myIpAddress(), "10.198.0.0", "255.255.0.0") ) { return "PROXY 139.11.6.62:3129"; } if ( isInNet(myIpAddress(), "10.227.0.0", "255.255.0.0") ) { return "PROXY 139.11.6.62:3129"; } if (url.substring(0, 5) == "http:") { return "PROXY 139.11.6.62:3128"; } if (url.substring(0, 6) == "https:") { return "PROXY 139.11.6.62:3128"; } if (url.substring(0, 4) == "ftp:") { return "PROXY 139.11.6.62:3128"; } return "SOCKS backsocket.unibw-hamburg.de:1080"; }