mirror of
https://github.com/curl/curl.git
synced 2024-11-27 05:50:21 +08:00
Curl_is_connected: use proxy name in error message when proxy is used
(bug introduced in 255826c4
, never present in a release)
Reported-by: Dima Tisnek
Bug: http://curl.haxx.se/mail/lib-2013-12/0006.html
This commit is contained in:
parent
2c0ecac9d3
commit
1cf71bd76e
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user