diff options
-rw-r--r-- | lib/connect.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/connect.c b/lib/connect.c index 9c38724d6..a39699ba7 100644 --- a/lib/connect.c +++ b/lib/connect.c @@ -827,7 +827,8 @@ CURLcode Curl_is_connected(struct connectdata *conn, } failf(data, "Failed to connect to %s port %ld: %s", - conn->host.name, conn->port, Curl_strerror(conn, error)); + conn->bits.proxy?conn->proxy.name:conn->host.name, + conn->port, Curl_strerror(conn, error)); } return code; |