From: Marcel Holtmann Date: Fri, 30 Jul 2010 03:46:33 +0000 (-0700) Subject: Add support for WPAD setting proxy information X-Git-Tag: accepted/2.0alpha-wayland/20121110.002834~2554 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ba9d60a47cd97a966e7b3c93636f20d005033afb;p=profile%2Fivi%2Fconnman.git Add support for WPAD setting proxy information --- diff --git a/src/wpad.c b/src/wpad.c index 38d4ce2..f3a1ab5 100644 --- a/src/wpad.c +++ b/src/wpad.c @@ -59,8 +59,13 @@ static void wpad_result(GResolvResultStatus status, DBG("status %d", status); - if (status == G_RESOLV_RESULT_STATUS_SUCCESS) - connman_info("PAC: http://%s/wpad.dat", wpad->hostname); + if (status == G_RESOLV_RESULT_STATUS_SUCCESS) { + char *url; + + url = g_strdup_printf("http://%s/wpad.dat", wpad->hostname); + __connman_service_set_proxy_autoconfig(wpad->service, url); + g_free(url); + } } void __connman_wpad_start(struct connman_service *service)