1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 23:58:49 -05:00

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

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