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.
This commit is contained in:
Marco d'Itri 2017-02-27 00:27:06 +01:00
parent fb823a251a
commit cf61394ded

View File

@ -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) {