summaryrefslogtreecommitdiff
path: root/src/wpad.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2010-07-29 20:46:33 -0700
committerMarcel Holtmann <marcel@holtmann.org>2010-07-29 20:46:33 -0700
commitba9d60a47cd97a966e7b3c93636f20d005033afb (patch)
treee2deb346ae8dd54177dc4cd749dbfae6a59e8f87 /src/wpad.c
parent3315d8520b1fd3588a895c70623aaca7f324b891 (diff)
downloadconnman-ba9d60a47cd97a966e7b3c93636f20d005033afb.tar.gz
connman-ba9d60a47cd97a966e7b3c93636f20d005033afb.tar.bz2
connman-ba9d60a47cd97a966e7b3c93636f20d005033afb.zip
Add support for WPAD setting proxy information
Diffstat (limited to 'src/wpad.c')
-rw-r--r--src/wpad.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/wpad.c b/src/wpad.c
index 38d4ce2f..f3a1ab54 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)