diff options
author | Daniel Stenberg <daniel@haxx.se> | 2004-04-26 14:03:25 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2004-04-26 14:03:25 +0000 |
commit | f5042cce34d0680ddfb8132d8d36521f10e5e3fe (patch) | |
tree | 37a4c173aef797ed4ef2e176eb0f0c8295077e89 /lib/urldata.h | |
parent | 712c67b4ae15feab0096afd12ccbbaa7cc8cd1b6 (diff) |
IDN adjustments and host cleanups by Gisle
Diffstat (limited to 'lib/urldata.h')
-rw-r--r-- | lib/urldata.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/urldata.h b/lib/urldata.h index 445788f8f..1912bcf0f 100644 --- a/lib/urldata.h +++ b/lib/urldata.h @@ -433,6 +433,10 @@ struct connectdata { somewhere within the namebuffer[] area */ #ifdef USE_LIBIDN char *ace_hostname; /* hostname possibly converted to ACE form */ +#define TRUE_HOSTNAME(conn) \ + (conn->ace_hostname ? conn->ace_hostname : conn->hostname) +#else +#define TRUE_HOSTNAME(conn) conn->hostname #endif char *pathbuffer;/* allocated buffer to store the URL's path part in */ char *path; /* path to use, points to somewhere within the pathbuffer |