aboutsummaryrefslogtreecommitdiff
path: root/lib/hostthre.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-04-27 13:56:23 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-04-27 13:56:23 +0000
commit4b9f8e766d0c4d989b0188a6dfd3c667e49a93a9 (patch)
treecf197c8327367708436d964e05547010e6d3adb5 /lib/hostthre.c
parent96002646f117b9547bf64a8e9d62ad9f2fefa543 (diff)
Made host name and proxy name get stored in a 'struct hostname' and set
all things up to work with encoded host names internally, as well as keeping 'display names' to show in debug messages. IDN resolves work for me now using ipv6, ipv4 and ares resolving. Even cookies on IDN sites seem to do right.
Diffstat (limited to 'lib/hostthre.c')
-rw-r--r--lib/hostthre.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/hostthre.c b/lib/hostthre.c
index 6f2182e03..b6c04c1af 100644
--- a/lib/hostthre.c
+++ b/lib/hostthre.c
@@ -375,12 +375,12 @@ CURLcode Curl_wait_for_resolv(struct connectdata *conn,
if (!conn->async.dns) {
/* a name was not resolved */
if (td->thread_status == (DWORD)-1 || conn->async.status == NO_DATA) {
- failf(data, "Resolving host timed out: %s", conn->hostname);
+ failf(data, "Resolving host timed out: %s", conn->host.name);
rc = CURLE_OPERATION_TIMEDOUT;
}
else if(conn->async.done) {
failf(data, "Could not resolve host: %s; %s",
- conn->hostname, Curl_strerror(conn,conn->async.status));
+ conn->host.name, Curl_strerror(conn,conn->async.status));
rc = CURLE_COULDNT_RESOLVE_HOST;
}
else