Proposed Proxy Toggle Improvement
Posted by:
Peabody
Date: November 21, 2006 05:10AM
Proposed Proxy Toggle Improvement
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...)
}
Changed To:
Pro&xy{
macros(NoProxy,&Direct Connection)
macros(LocalProxy,&Local Connection)
macros(proxy1)
macros(proxy2)
macros(proxy3)
-
macros(ProxyCfg,Con&figure...)
}
In macros.cfg
I added the following macro code:
#----- 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.
Thank you.
Re: Proposed Proxy Toggle Improvement
Date: November 21, 2006 12:24PM
Thank you for the code, Peabody. I have some future plans for the proxy macros anyway. I'll look at it...
Re: Proposed Proxy Toggle Improvement
Date: November 21, 2006 09:40PM
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...
Re: Proposed Proxy Toggle Improvement
Posted by:
hi
Date: November 22, 2006 01:33AM
Good!
Re: Proposed Proxy Toggle Improvement
Posted by:
hi
Date: November 22, 2006 01:34AM
顶一个ä¸æ–‡ï¼Œå“ˆå“ˆ
Re: Proposed Proxy Toggle Improvement
Date: November 23, 2006 05:13AM
Quote
hi
顶一个ä¸æ–‡ï¼Œå“ˆå“ˆ
but only a little :-)
AFAIK Opera code is not open so better little Fox-code.
Edited 1 time(s). Last edit at 11/23/2006 05:15AM by guenter.
Re: Proposed Proxy Toggle Improvement
Posted by:
sly
Date: November 24, 2006 05:31AM
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.
Re: Proposed Proxy Toggle Improvement
Date: November 24, 2006 04:25PM
But is there any convenient way to set up certain proxy for certain sites.
Not AFAIK.
Also, I am wondering is there a way to config non-proxy-addresses like "10.10.*".
See "No proxy for:" in Preferences > Proxy.
Re: Proposed Proxy Toggle Improvement
Posted by:
l
Date: October 01, 2007 02:49PM
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.
Re: Proposed Proxy Toggle Improvement
Posted by:
fogal
Date: January 23, 2008 05:49PM
chick chick yiaaa
-McLovin
(: