Differences between version 33 and predecessor to the previous major change of WPAD.
Other diffs: Previous Revision, Previous Author, or view the Annotated Edit History
Newer page: | version 33 | Last edited on Monday, July 26, 2004 8:53:38 am | by MichaelZieger | Revert |
Older page: | version 32 | Last edited on Friday, June 18, 2004 3:57:03 am | by MalteStretz | Revert |
@@ -82,8 +82,45 @@
* RFC:3040
* [Internet Draft on WPAD|http://www.web-cache.com/Writings/Internet-Drafts/draft-ietf-wrec-wpad-01.txt]
* [http://wiki.debian.net/ProxyAutodetectConf]
* [Super Proxy Scripts|http://naragw.sharp.co.jp/sps/]
+
+----
+
+Notes by Michael Zieger:
+
+If you try to use a wpad.dat in Konqueror (I tested version 3.2.2), be aware that the following does NOT work:
+
+ if (isInNet(myIpAddress(), "10.0.0.0", "255.0.0.0") || isInNet(myIpAddress(), "192.168.0.0", "255.255.0.0"))
+
+It seems Konqueror does not know the function "isInNet". Therefore, I changed the config slightly:
+
+ var proxy_yes = "PROXY proxy.i.zmi.at:3128; DIRECT";
+ var proxy_no = "DIRECT";
+
+ // WARNING: The "dnsDomainIs" is a check of which DNS domain the _client_
+ // is inside. It's not a check for where the client wants to go!!!
+ // if (dnsDomainIs( host,"zmi.at") { return proxy_no; }
+
+ // Proxy if PC is on local LAN - doesn't work with Konqueror!
+ // So this test is for Internet Explorer and compatible only
+ if (isInNet(myIpAddress(), "10.0.0.0", "255.0.0.0") || isInNet(myIpAddress(), "192.168.0.0", "255.255.0.0")) {
+ if (url.substring(0, 5) == "http:" ||
+ url.substring(0, 4) == "ftp:" ||
+ url.substring(0, 7) == "gopher:")
+ return proxy_yes;
+ else
+ return proxy_no;
+ }
+ // Konqueror comes until here:
+ if (url.substring(0, 5) == "http:" ||
+ url.substring(0, 4) == "ftp:" ||
+ url.substring(0, 7) == "gopher:")
+ return proxy_yes;
+ else
+ return proxy_no;
+
+Now you even can differentiate between Konqueror and Internet Explorer, and could give them different proxies. If you want to download the running config, visit !http://zmi.at/wpad.dat
----
!Footnotes