diff options
author | Heiko Hund | 2012-07-11 14:16:50 +0200 |
---|---|---|
committer | David Sommerseth | 2012-07-19 21:37:54 +0200 |
commit | af1bf85aee836f2b729c38990028c035b6c69152 (patch) | |
tree | 88d0bce58fedade815ef121d2cc597e2df00f6e3 /src/openvpn/proxy.c | |
parent | af417baa93f4ebcc545486cbd9635fbc602ba148 (diff) | |
download | openvpn-af1bf85aee836f2b729c38990028c035b6c69152.zip openvpn-af1bf85aee836f2b729c38990028c035b6c69152.tar.gz |
add option --management-query-proxy
Make openvpn query for proxy information through the
management interface. This allows GUIs to provide (automatically
detected) proxy information on a per connection basis.
This new option supersedes the undocumented --http-proxy-fallback
option and puts the responsibilty for HTTP proxy fallback handling
to the GUI caring for such.
Signed-off-by: Heiko Hund <heiko.hund@sophos.com>
Reviewed-by: James Yonan <james@openvpn.net>
Message-Id: 1342009010-9735-1-git-send-email-heiko.hund@sophos.com
URL: http://article.gmane.org/gmane.network.openvpn.devel/6841
Signed-off-by: David Sommerseth <dazo@users.sourceforge.net>
Diffstat (limited to 'src/openvpn/proxy.c')
-rw-r--r-- | src/openvpn/proxy.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/openvpn/proxy.c b/src/openvpn/proxy.c index 200ca44..28ce019 100644 --- a/src/openvpn/proxy.c +++ b/src/openvpn/proxy.c @@ -46,6 +46,21 @@ #define UP_TYPE_PROXY "HTTP Proxy" +struct http_proxy_options * +init_http_proxy_options_once (struct http_proxy_options *hpo, + struct gc_arena *gc) +{ + if (!hpo) + { + ALLOC_OBJ_CLEAR_GC (hpo, struct http_proxy_options, gc); + /* http proxy defaults */ + hpo->timeout = 5; + hpo->http_version = "1.0"; + } + return hpo; +} + + /* cached proxy username/password */ static struct user_pass static_proxy_user_pass; |