[Libwebsockets] [libwebsockets] add function to manually setup proxy. Useful on iOS where getenv doesn't return proxy settings (#16)

"Andy Green (林安廸)" andy at warmcat.com
Thu Oct 24 16:24:52 CEST 2013


On 24/10/13 20:46, the mail apparently from shyswork included:
> On iOS getenv("http_proxy") doesn't return proxy settings so you have to
> use some iOS SDK (CFNetwork) calls to get proxy. I have added this
> function to be able to set proxy manually after I got it from system. I
> have considered also to add proxy setting as a parameter to
> libwebsocket_create_context but I thought it would be to intrusive and
> not that commonly used. Please check if it suits the overall style of
> library since maybe I have missed something. If the code is not OK,
> please add the functionality to set proxy as you think would be best.

Thanks I simplified the code a bit and hopefully didn't break it.

http://git.libwebsockets.org/cgi-bin/cgit/libwebsockets/commit/?id=b4e800e333f66bec56ad22f6e3cf1455618d4305

-Andy

> ------------------------------------------------------------------------
>
>
>         You can merge this Pull Request by running
>
>    git pull https://github.com/shyswork/libwebsockets master
>
> Or view, comment on, or merge it at:
>
> https://github.com/warmcat/libwebsockets/pull/16
>
>
>         Commit Summary
>
>   * add function to manually setup proxy. Useful on iOS where getenv
>     doesn't return proxy settings
>
>
>         File Changes
>
>   * *M* lib/libwebsockets.c
>     <https://github.com/warmcat/libwebsockets/pull/16/files#diff-0> (56)
>   * *M* lib/libwebsockets.h
>     <https://github.com/warmcat/libwebsockets/pull/16/files#diff-1> (3)
>
>
>         Patch Links:
>
>   * https://github.com/warmcat/libwebsockets/pull/16.patch
>   * https://github.com/warmcat/libwebsockets/pull/16.diff
>




More information about the Libwebsockets mailing list