It has to strip away the "PROXY" word and spaces from the proxy lookup result, or then gweb won't be able to resolve it. --- src/wispr.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/src/wispr.c b/src/wispr.c index 7894537..32cf75a 100644 --- a/src/wispr.c +++ b/src/wispr.c @@ -775,8 +775,13 @@ static void proxy_callback(const char *proxy, void *user_data) wp_context->token = 0; - if (proxy && g_strcmp0(proxy, "DIRECT") != 0) + if (proxy && g_strcmp0(proxy, "DIRECT") != 0) { + if (g_str_has_prefix(proxy, "PROXY")) { + proxy += 5; + for (; *proxy == ' ' && *proxy != '\0'; proxy++); + } g_web_set_proxy(wp_context->web, proxy); + } g_web_set_accept(wp_context->web, NULL); g_web_set_user_agent(wp_context->web, "ConnMan/%s wispr", VERSION); -- 1.8.3.2 _______________________________________________ connman mailing list connman@connman.net https://lists.connman.net/mailman/listinfo/connman