mirror of
https://github.com/rfc1036/whois.git
synced 2026-05-03 06:51:09 +00:00
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:
parent
fb823a251a
commit
cf61394ded
2
whois.c
2
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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user