From cf61394ded7532b339f22411cf048c83a70277bb Mon Sep 17 00:00:00 2001 From: Marco d'Itri Date: Mon, 27 Feb 2017 00:27:06 +0100 Subject: [PATCH] Unconditionally use AI_IDN AI_IDN is not provided by libidn: it is a feature of glibc. If not available on other platforms then it will be defined to 0 in utils.h. --- whois.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/whois.c b/whois.c index adcf5e7..06346ed 100644 --- a/whois.c +++ b/whois.c @@ -940,9 +940,7 @@ int openconn(const char *server, const char *port) hints.ai_family = AF_UNSPEC; hints.ai_socktype = SOCK_STREAM; hints.ai_flags = AI_ADDRCONFIG; -#ifdef HAVE_LIBIDN hints.ai_flags |= AI_IDN; -#endif if ((err = getaddrinfo(server, port ? port : "nicname", &hints, &res)) != 0) {