added port number in informational connect message

This commit is contained in:
Daniel Stenberg 2001-10-02 12:51:15 +00:00
parent ced8955325
commit dd02881788
1 changed files with 3 additions and 2 deletions

View File

@ -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