use correct env vars for connman proxy setting

https://curl.haxx.se/docs/manual.html
This commit is contained in:
Mike Blumenkrantz 2017-09-26 12:26:19 -04:00
parent 3b319b5ef9
commit 00c968d63c
1 changed files with 6 additions and 6 deletions

View File

@ -240,9 +240,9 @@ static void _service_parse_prop_changed(struct Connman_Service *cs,
{
DBG("New {all,http{,s}}_proxy: %s",
(const char*)eina_array_data_get(proxy_servers, 0));
e_env_set("all_proxy", eina_array_data_get(proxy_servers, 0));
e_env_set("ALL_PROXY", eina_array_data_get(proxy_servers, 0));
e_env_set("http_proxy", eina_array_data_get(proxy_servers, 0));
e_env_set("https_proxy", eina_array_data_get(proxy_servers, 0));
e_env_set("HTTPS_PROXY", eina_array_data_get(proxy_servers, 0));
}
if (eina_array_count(proxy_excludes) > 0)
{
@ -259,16 +259,16 @@ static void _service_parse_prop_changed(struct Connman_Service *cs,
eina_strbuf_append(buf, p);
}
DBG("New no_proxy: %s", eina_strbuf_string_get(buf));
e_env_set("no_proxy", eina_strbuf_string_get(buf));
e_env_set("NO_PROXY", eina_strbuf_string_get(buf));
eina_strbuf_free(buf);
}
}
else if (strcmp(method, "direct") == 0)
{
e_env_unset("all_proxy");
e_env_unset("ALL_PROXY");
e_env_unset("http_proxy");
e_env_unset("https_proxy");
e_env_unset("no_proxy");
e_env_unset("HTTPS_PROXY");
e_env_unset("NO_PROXY");
}
if (proxy_excludes)