summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2017-09-26 12:26:19 -0400
committerMike Blumenkrantz <zmike@osg.samsung.com>2017-09-26 12:26:18 -0400
commit00c968d63c9d13f8d5e90da02b960307c3470237 (patch)
tree25a9a0c2fffeaad60c73c24878120f02317d3277 /src/modules
parent3b319b5ef96ef961d097349c7a46dbd7618f39cc (diff)
use correct env vars for connman proxy setting
https://curl.haxx.se/docs/manual.html
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/connman/e_connman.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/modules/connman/e_connman.c b/src/modules/connman/e_connman.c
index b937ab5..220c705 100644
--- a/src/modules/connman/e_connman.c
+++ b/src/modules/connman/e_connman.c
@@ -240,9 +240,9 @@ static void _service_parse_prop_changed(struct Connman_Service *cs,
240 { 240 {
241 DBG("New {all,http{,s}}_proxy: %s", 241 DBG("New {all,http{,s}}_proxy: %s",
242 (const char*)eina_array_data_get(proxy_servers, 0)); 242 (const char*)eina_array_data_get(proxy_servers, 0));
243 e_env_set("all_proxy", eina_array_data_get(proxy_servers, 0)); 243 e_env_set("ALL_PROXY", eina_array_data_get(proxy_servers, 0));
244 e_env_set("http_proxy", eina_array_data_get(proxy_servers, 0)); 244 e_env_set("http_proxy", eina_array_data_get(proxy_servers, 0));
245 e_env_set("https_proxy", eina_array_data_get(proxy_servers, 0)); 245 e_env_set("HTTPS_PROXY", eina_array_data_get(proxy_servers, 0));
246 } 246 }
247 if (eina_array_count(proxy_excludes) > 0) 247 if (eina_array_count(proxy_excludes) > 0)
248 { 248 {
@@ -259,16 +259,16 @@ static void _service_parse_prop_changed(struct Connman_Service *cs,
259 eina_strbuf_append(buf, p); 259 eina_strbuf_append(buf, p);
260 } 260 }
261 DBG("New no_proxy: %s", eina_strbuf_string_get(buf)); 261 DBG("New no_proxy: %s", eina_strbuf_string_get(buf));
262 e_env_set("no_proxy", eina_strbuf_string_get(buf)); 262 e_env_set("NO_PROXY", eina_strbuf_string_get(buf));
263 eina_strbuf_free(buf); 263 eina_strbuf_free(buf);
264 } 264 }
265 } 265 }
266 else if (strcmp(method, "direct") == 0) 266 else if (strcmp(method, "direct") == 0)
267 { 267 {
268 e_env_unset("all_proxy"); 268 e_env_unset("ALL_PROXY");
269 e_env_unset("http_proxy"); 269 e_env_unset("http_proxy");
270 e_env_unset("https_proxy"); 270 e_env_unset("HTTPS_PROXY");
271 e_env_unset("no_proxy"); 271 e_env_unset("NO_PROXY");
272 } 272 }
273 273
274 if (proxy_excludes) 274 if (proxy_excludes)