aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-04-26 15:19:55 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-04-26 15:19:55 +0000
commite218811ca39bb9f81f2dab45f66e1d50ff7f88ec (patch)
tree49ac5532326460c7538498277fcf7d2c326f2fde
parenta9f2274bd8e027465386b227b47156468e477146 (diff)
made the verbose connect use the proper host name string even when using
a proxy
-rw-r--r--lib/url.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/url.c b/lib/url.c
index fec12c22a..695d374bf 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -1906,7 +1906,8 @@ static void verboseconnect(struct connectdata *conn)
host = Curl_inet_ntop(AF_INET, &in, addrbuf, sizeof(addrbuf));
#endif
infof(data, "Connected to %s (%s) port %d\n",
- conn->hostname, host?host:"", conn->port);
+ conn->bits.httpproxy?conn->proxyhost:conn->hostname,
+ host?host:"", conn->port);
}
/*