]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
made the verbose connect use the proper host name string even when using
authorDaniel Stenberg <daniel@haxx.se>
Mon, 26 Apr 2004 15:19:55 +0000 (15:19 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 26 Apr 2004 15:19:55 +0000 (15:19 +0000)
a proxy

lib/url.c

index fec12c22affbb3776891db3be5e82c98c33ae1ac..695d374bfd2979edf2c1f6ac7a01a6a8cd460a52 100644 (file)
--- 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);
 }
 
 /*