Proxy.pac korrekt - funktioniert dennoch nicht
Diese Skript:
Das Skript funktioniert bei einigen PCs, bei anderen, identischen Geräte wieder nicht.
Sobald man im LAN ist, kommt man nicht mehr in das Internet. Anscheinend wird der Proxy Eintrag nicht gesetzt. Ausserhalb des LANs gibt es kein Problem.
Jemand ein Idee?
function FindProxyForURL(url, host)
{
var proxy_yes = "PROXY 10.1.50.181:8080";
var proxy_no = "DIRECT";
if (shExpMatch(host, "127.0.0.1")) { return proxy_no; }
if (shExpMatch(host, "localhost")) { return proxy_no; }
if (shExpMatch(url, "*.domain.local/*")) { return proxy_no; }
if (shExpMatch(url, "*.domain.local:*/*")) { return proxy_no; }
if (shExpMatch(url, "http://intranet*")) { return proxy_no; }
if (shExpMatch(url, "http://c1*")) { return proxy_no; }
if (shExpMatch(url, "http://abc*")) { return proxy_no; }
if (isInNet(myIpAddress(), "172.20.0.0", "255.255.0.0"))
return proxy_yes;
else
return proxy_no;
}
Das Skript funktioniert bei einigen PCs, bei anderen, identischen Geräte wieder nicht.
Sobald man im LAN ist, kommt man nicht mehr in das Internet. Anscheinend wird der Proxy Eintrag nicht gesetzt. Ausserhalb des LANs gibt es kein Problem.
Jemand ein Idee?
Please also mark the comments that contributed to the solution of the article
Content-Key: 109279
Url: https://administrator.de/contentid/109279
Printed on: April 24, 2024 at 04:04 o'clock
5 Comments
Latest comment
Helfen vielleicht die Kommentare zu Problem mit Proxy.pac ?
Hi,
also so habe ich das noch nie gesehen. Probier es mal so:
Wie hast du die Datei eingebunden?! Manuell hinterlegt im Browser oder hast du es entsprechend mit DHCP gelöst?
Grüße,
Dani
also so habe ich das noch nie gesehen. Probier es mal so:
function FindProxyForURL(url, host)
{
if (isInNet(host, "127.0.0.1", "255.255.255.255")) return "DIRECT";
if (shExpMatch(url, "*.domain.local/*")) return "DIRECT";
if (shExpMatch(url, "*.domain.local:*/*")) return "DIRECT";
if (shExpMatch(url, "http://intranet*")) return "DIRECT";
if (shExpMatch(url, "http://c1*")) return "DIRECT";
if (shExpMatch(url, "http://abc*")) return "DIRECT";
if (isInNet(host, "172.20.0.0", "255.255.0.0")) return "PROXY 10.1.50.181:8080";
return "DIRECT";;
}
Grüße,
Dani
Klaro...so machen wir das auch. Siehe hier...