diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2011-01-01 21:51:32 -0800 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2011-01-01 21:51:32 -0800 |
commit | 6b05f1c07e2d43c6c60fe950e3b62897ce133976 (patch) | |
tree | 0c287dadbd964ee8d19ce145cd3a1ddeb68e469e /gweb | |
parent | 907c955a8f2ef19a6b64e31a3c8b4cdca2d87ab4 (diff) | |
download | connman-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.c | 9 |
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; } |