Aktuelle PAC für die Clients der Uni Magdeburg

// Automatische Proxy Configuration fuer Clients der Uni Magdeburg
// (C) by Jens Elkner 
// Last Update: 18.07.97
function FindProxyForURL(url, host) {
URZcache = "PROXY www-cache.uni-magdeburg.de:3128; " +
           "PROXY proxycache.cs.uni-magdeburg.de:3128; " +
	   "DIRECT";
FINcache = "PROXY proxycache.cs.uni-magdeburg.de:3128; " +
	   "PROXY www-cache.uni-magdeburg.de:3128; " +
	   "DIRECT";
TESTcache = "PROXY proxycache1.cs.uni-magdeburg.de:3128; " +
	    "PROXY proxycache.cs.uni-magdeburg.de:3128; " +
	    "DIRECT";
	if (isPlainHostName(host) ||
	    dnsDomainIs(host, ".uni-magdeburg.de") ||
	    isInNet(host, "141.44.0.0", "255.255.0.0") )
	//  || (url.indexOf("\?") > -1) )
	  return "DIRECT";
	else {
	  clientIP = myIpAddress();
	  subNet = clientIP.substring(7,clientIP.lastIndexOf("."));
 	  if ( subNet < 18 || subNet > 75) return URZcache;
	  if ( subNet < 70 ) return FINcache;
 	  if ( url.indexOf("msnprhtml") > -1 ) return "DIRECT";
	  else return URZcache;
	}
}



|  Home   |  ProxyCache   |  Mbone   |  Statistics   |  W3-Tools   |  Search   |  
Jens Elkner    <elkner@ivs.cs.uni-magdeburg.de>
Last modified: Friday, 06-Jun-97 00:38:50 MET DST