projects
/
framework
/
connectivity
/
connman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3315d85
)
Add support for WPAD setting proxy information
author
Marcel Holtmann
<marcel@holtmann.org>
Fri, 30 Jul 2010 03:46:33 +0000
(20:46 -0700)
committer
Marcel Holtmann
<marcel@holtmann.org>
Fri, 30 Jul 2010 03:46:33 +0000
(20:46 -0700)
src/wpad.c
patch
|
blob
|
history
diff --git
a/src/wpad.c
b/src/wpad.c
index
38d4ce2
..
f3a1ab5
100644
(file)
--- 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)