I was happy to see that K-M 1.02 offered some proxy toggling support in the menus. Unfortunately, the toggling did not work for me.
The current K-M proxy support does not seem to support local proxies. At least, this is not obvious to me in my testing. The current support seems designed for people using proxies external to their internet connection to surf anonymously.
I am using a local proxy setup. My browser goes through Squid, which goes through Proxomitron. But there are times when, for troubleshooting a web site, I temporarily bypass my proxies and allow my browser to connect directly to the web site. I can use the K-M menu to toggle to a direct connection but then there is no easy way to restore my internal proxy settings. The Proxy Custom options do not work in the manner I need to restore my local proxy settings. Therefore I added the following mods to the K-M config files:
In menu.cfg I modified the Proxy menu section:
As Is:
Pro&xy{
macros(NoProxy,&Direct Connection)
macros(proxy1)
macros(proxy2)
macros(proxy3)
-
macros(ProxyCfg,Con&figure...)
}
#----- Enable Local Proxy Server -----
LocalProxy {
setpref(INT,$proxy."type",1); statusbar(_("Connecting to local proxy")); &ProxySync;
}
#-----end
Notice the macro merely sets the pref.js network.proxy.type parameter to true. Because the browser does not delete the other associated proxy settings in prefs.js when I toggle to direct connection, and that I also initialize my default proxy settings in my user.js, to restore my local proxy settings I need only toggle the above prefs.js key.
I am asking the developers to consider incorporating these mods into K-M 1.1.
The current K-M proxy support does not seem to support local proxies.
Have you ever tried to set the server URL to 'localhost' or '127.0.0.1'? ('URL' just means 'Unified Resource Locator', the specified resource is not necessarily located remote.)
When the proxy feature doesn't work for you because you have to configure more details than only the HTTP protocol, I suggest to do it like this:
- Keep your detailed configuration in your user.js
- Set up a custom proxy with the same HTTP settings than in user.js (you could later migrate these settings from prefs.js to user.js)
This way, you can both disable and restore your proxy from the menu with the default macros...
Good. But is there any convenient way to set up certain proxy for certain sites.
Users from China mainland couldn't access wikipedia without a foreign proxy.
Also, I am wondering is there a way to config non-proxy-addresses like "10.10.*".
It could kill me if I put all my addresses in the subnet in the filter.
Thanks again for that macro.
Quote sly Good. But is there any convenient way to set up certain proxy for certain sites.
Users from China mainland couldn't access wikipedia without a foreign proxy.
Also, I am wondering is there a way to config non-proxy-addresses like "10.10.*".
It could kill me if I put all my addresses in the subnet in the filter.
Thanks again for that macro.