Version: 4.0 (using KDE 3.1.3) Installed from: compiled sources Compiler: gcc version 3.3.1 [FreeBSD] OS: FreeBSD (i386) release 5.1-CURRENT Sometimes our quick and direct Internet connection goes down and I'd like to switch to the alternative one, which is using a proxy. My FindProxyForURL() returns "DIRECT; PROXY 172.21.17.206:3128" Unfortunately, when the direct link is unavailable, Konqueror (or is it the kio_*?) does not automaticly try the proxy -- I have to edit and reload the proxy file to return "PROXY 172.21.17.206:3128; DIRECT" The http://wp.netscape.com/eng/mozilla/2.0/relnotes/demo/proxy-live.html contains the original specification of the FindProxyForURL(). It only has examples for lists of proxies, but the behaviour I'd expect logicly follows from the specification.
If it's direct, it's not by proxy. I don't think the code was written to do what you are asking of it, so I don't think it will ever work. I'll leave for someone else to make a final word on this, but I can already tell you that: 1) this is probably a "wishlist", since the feature is not implemented 2) it will probably be closed as WONTFIX
I frivolously suspect, that even the list, which contains multiple proxies would not work as expected, but I have not tested this.
Multiple proxy hosts are not supported at the moment, likewise multiple hosts (IPs) for a single hostname are not supported either. In both cases only the first one is tried. Changed to wishlist. Probably useful to implement after KDE 3.2
3.3 is out and this feature is still not in :-( Nobody is even looking at wish-list items, I suspect. I'd like to be able to add another possible result to the FindProxyForURL(): "REJECT". This way all sorts of censorship can be implemented -- such as ad-blocking -- without adding advertisers' servers to the /etc/hosts: function FindProxyForURL(url, host) { if (isPlainHostName(host)) return "DIRECT"; if (shExpMatch(url, "*advert*") return "REJECT"; return "PROXY 10.0.2.100:2880; PROXY 10.0.3.100; DIRECT"; }
*** Bug 118854 has been marked as a duplicate of this bug. ***
This will probably be fixed for KDE 4.7. I have already committed one half portion of the code that would make this possible. The other more important half is still pending and hopeful will be committed before 4.7 release. See the url below for details: https://git.reviewboard.kde.org/r/101037/
See comment #6.