Commit dd028817 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

added port number in informational connect message

parent ced89553
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -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