summaryrefslogtreecommitdiff
path: root/gweb
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2011-01-01 21:51:32 -0800
committerMarcel Holtmann <marcel@holtmann.org>2011-01-01 21:51:32 -0800
commit6b05f1c07e2d43c6c60fe950e3b62897ce133976 (patch)
tree0c287dadbd964ee8d19ce145cd3a1ddeb68e469e /gweb
parent907c955a8f2ef19a6b64e31a3c8b4cdca2d87ab4 (diff)
downloadconnman-6b05f1c07e2d43c6c60fe950e3b62897ce133976.tar.gz
connman-6b05f1c07e2d43c6c60fe950e3b62897ce133976.tar.bz2
connman-6b05f1c07e2d43c6c60fe950e3b62897ce133976.zip
gweb: Add extra debug for proxy setup
Diffstat (limited to 'gweb')
-rw-r--r--gweb/gweb.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/gweb/gweb.c b/gweb/gweb.c
index 2f464458..9d746c82 100644
--- a/gweb/gweb.c
+++ b/gweb/gweb.c
@@ -255,7 +255,14 @@ gboolean g_web_set_proxy(GWeb *web, const char *proxy)
return FALSE;
g_free(web->proxy);
- web->proxy = g_strdup(proxy);
+
+ if (proxy == NULL) {
+ web->proxy = NULL;
+ debug(web, "clearing proxy");
+ } else {
+ web->proxy = g_strdup(proxy);
+ debug(web, "setting proxy %s", web->proxy);
+ }
return TRUE;
}