From: Daniel Stenberg Date: Tue, 2 Oct 2001 12:51:15 +0000 (+0000) Subject: added port number in informational connect message X-Git-Tag: curl-7_9_1~128 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=dd028817884ca3262ae4e136332a7fdf469787e9;p=thirdparty%2Fcurl.git added port number in informational connect message --- diff --git a/lib/url.c b/lib/url.c index bc4ae3b2cc..198170dce9 100644 --- a/lib/url.c +++ b/lib/url.c @@ -2047,9 +2047,10 @@ static CURLcode CreateConnection(struct SessionHandle *data, snprintf(hbuf, sizeof(hbuf), "?"); } if (ai->ai_canonname) { - infof(data, "Connected to %s (%s)\n", ai->ai_canonname, hbuf); + infof(data, "Connected to %s (%s) port %d\n", ai->ai_canonname, hbuf, + conn->port); } else { - infof(data, "Connected to %s\n", hbuf); + infof(data, "Connected to %s port %d\n", hbuf, conn->port); } } #else