From f5042cce34d0680ddfb8132d8d36521f10e5e3fe Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 26 Apr 2004 14:03:25 +0000 Subject: IDN adjustments and host cleanups by Gisle --- lib/urldata.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/urldata.h') 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 -- cgit v1.2.3