diff options
author | corvid <corvid@lavabit.com> | 2010-01-12 04:16:21 +0000 |
---|---|---|
committer | corvid <corvid@lavabit.com> | 2010-01-12 04:16:21 +0000 |
commit | 2fa3aa0931a73d9ac83ee95ebef1c66b06f708c6 (patch) | |
tree | 98d036fb7ac7637ecad3bffd1fbedb5c7db78c13 /src/IO | |
parent | 388754c08adb5da535d94690ae327d0e2493e89c (diff) |
If http_proxy pref set, but env var not set, then set env var (for wget).
http://lists.auriga.wearlab.de/pipermail/dillo-dev/2009-December/007131.html
Diffstat (limited to 'src/IO')
-rw-r--r-- | src/IO/http.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/IO/http.c b/src/IO/http.c index 56a1b3a8..afeb6d71 100644 --- a/src/IO/http.c +++ b/src/IO/http.c @@ -82,8 +82,10 @@ int a_Http_init(void) if (env_proxy && strlen(env_proxy)) HTTP_Proxy = a_Url_new(env_proxy, NULL); - if (!HTTP_Proxy && prefs.http_proxy) - HTTP_Proxy = a_Url_dup(prefs.http_proxy); + if (!HTTP_Proxy && prefs.http_proxy) { + HTTP_Proxy = a_Url_new(prefs.http_proxy, NULL); + setenv("http_proxy", URL_STR(HTTP_Proxy), 1); + } /* This allows for storing the proxy password in "user:passwd" format * in dillorc, but as this constitutes a security problem, it was disabled. |