Proxy.pac simple: Unterschied zwischen den Versionen

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen
(Die Seite wurde neu angelegt: „function FindProxyForURL(url, host) { if (isInNet(host, "10.0.0.0", "255.0.0.0")) { return "DIRECT"; } if (isInNet(host, "172.16.0.0", "255.240.0.0"))…“)
 
 
Zeile 1: Zeile 1:
 +
<pre>
 
function FindProxyForURL(url, host)
 
function FindProxyForURL(url, host)
 
{
 
{
Zeile 19: Zeile 20:
 
}
 
}
 
}
 
}
 +
</pre>

Aktuelle Version vom 17. Oktober 2019, 10:08 Uhr

function FindProxyForURL(url, host)
{
 if (isInNet(host, "10.0.0.0", "255.0.0.0"))
  { return "DIRECT";
  }

  if (isInNet(host, "172.16.0.0", "255.240.0.0"))
  { return "DIRECT";
  }

  if (isInNet(host, "192.168.0.0", "255.255.0.0"))
  { return "DIRECT";
  }

    }
else
{
return "PROXY 10.80.0.3:3128";
}
}