Proxy.pac check local: Unterschied zwischen den Versionen

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen
(Die Seite wurde neu angelegt: „<pre> function FindProxyForURL(url, host) { if (isPlainHostName(host) || shExpMatch(host, "*.xinux.lan") || isInNet(dnsResolve(host), "10.0.0…“)
 
(kein Unterschied)

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

function FindProxyForURL(url, host) {
  if (isPlainHostName(host) ||
        shExpMatch(host, "*.xinux.lan") ||
        isInNet(dnsResolve(host), "10.0.0.0", "255.0.0.0") ||
        isInNet(dnsResolve(host), "172.16.0.0",  "255.240.0.0") ||
        isInNet(dnsResolve(host), "192.168.0.0",  "255.255.0.0") ||
        isInNet(dnsResolve(host), "127.0.0.0", "255.255.255.0"))
        return "DIRECT";
  return "PROXY nagus.xinux.lan:3128";
}