On Thu, 22 Dec 2011 12:32:36 +0900
Bluezery <[email protected]> wrote:

> 2011/12/21 Michael Blumenkrantz <[email protected]>:
> > On Wed, 21 Dec 2011 17:42:22 +0900
> > Bluezery <[email protected]> wrote:
> >
> >> Hi,
> >>
> >> I have heard that ECORE_CON_SOCKS_V4 is used for socks proxy.
> >> So, I add to read this value when econ_con_url is used.
> >> But I can not test this. because I cannot access socks proxy server.
> >> @discomfitor can help to review this patch.
> >>
> > also, you can easily test this by doing something like:
> >
> > Create the ssh tunnel to localhost:
> > ssh -D 9999 127.0.0.1
> >
> > Start an app with the proxy variable which uses the localhost tunnel:
> > ECORE_CON_SOCKS_V4=127.0.0.1:9999:1 ./app
> 
> Oops.. I have forgotten a patch file :(
> And sorry for later response
> I have tested as you suggested.  It works well :)
> Also I have realized that proxy username/password set APIs are needed
> and added them.
> Please review attached patch.
> 
a few issues with this:

* you don't actually need to do the env variable parsing, there's a global (to
  ecore-con) variable which gets set any time a proxy should always be used,
  and you can simply check for this and then pull the data from it just before
  a curl request begins
* you can only set a username/password with socks5+, so you'll have to add
  checks for that
* for now I would stick with just socks4/4a stuff to keep the patch smaller; I
  have a few things which need to be done before socks5 goes in, and it may
  require changes to whatever you do now

------------------------------------------------------------------------------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create 
new or port existing apps to sell to consumers worldwide. Explore the 
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to