diff options
author | Daniel Stenberg <daniel@haxx.se> | 2018-04-11 08:15:55 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2018-04-11 08:15:55 +0200 |
commit | b4b3e71054e34c4328a5728c3b59565bb026ec08 (patch) | |
tree | cca2b817fa569d92d9ced8114146ffc1769940fa | |
parent | 0d1bb039ab925ededc528787c8b9cc056c2f31ec (diff) | |
download | curl-bagder/verbose-proxy-use.tar.gz |
fixup also log use of "no_proxy"bagder/verbose-proxy-use
-rw-r--r-- | lib/url.c | 12 |
1 files changed, 9 insertions, 3 deletions
@@ -2959,9 +2959,15 @@ static CURLcode create_conn_helper_init_proxy(struct connectdata *conn) } if(!data->set.str[STRING_NOPROXY]) { - no_proxy = curl_getenv("no_proxy"); - if(!no_proxy) - no_proxy = curl_getenv("NO_PROXY"); + const char *p = "no_proxy"; + no_proxy = curl_getenv(p); + if(!no_proxy) { + p = "NO_PROXY"; + no_proxy = curl_getenv(p); + } + if(no_proxy) { + infof(conn->data, "Uses proxy env variable %s == '%s'\n", p, no_proxy); + } } if(check_noproxy(conn->host.name, data->set.str[STRING_NOPROXY] ? |