diff options
author | Daniel Stenberg <daniel@haxx.se> | 2004-04-27 13:56:23 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2004-04-27 13:56:23 +0000 |
commit | 4b9f8e766d0c4d989b0188a6dfd3c667e49a93a9 (patch) | |
tree | cf197c8327367708436d964e05547010e6d3adb5 /lib/ldap.c | |
parent | 96002646f117b9547bf64a8e9d62ad9f2fefa543 (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/ldap.c')
-rw-r--r-- | lib/ldap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ldap.c b/lib/ldap.c index cb2ba0101..6e755f44e 100644 --- a/lib/ldap.c +++ b/lib/ldap.c @@ -196,10 +196,10 @@ CURLcode Curl_ldap(struct connectdata *conn) DYNA_GET_FUNCTION(void (*)(void *), ldap_memfree); DYNA_GET_FUNCTION(void (*)(void *, int), ber_free); - server = ldap_init(conn->hostname, conn->port); + server = ldap_init(conn->host.name, conn->port); if (server == NULL) { failf(data, "LDAP: Cannot connect to %s:%d", - conn->hostname, conn->port); + conn->host.name, conn->port); status = CURLE_COULDNT_CONNECT; } else { |