AI_ADDRCONFIG is only useful when the NODE argument is given in the
getaddrinfo call, as described in RFC 3493 6.1. Suggested by Andreas
Metzler in:
https://gitlab.com/gnutls/gnutls/-/issues/1007#note_356637206
Signed-off-by: Daiki Ueno <ueno@gnu.org>
snprintf(portname, sizeof(portname), "%d", listen_port);
memset(&hints, 0, sizeof(hints));
hints.ai_socktype = socktype;
- hints.ai_flags = AI_PASSIVE
-#ifdef AI_ADDRCONFIG
- | AI_ADDRCONFIG
-#endif
- ;
+ hints.ai_flags = AI_PASSIVE;
if ((s = getaddrinfo(NULL, portname, &hints, &res)) != 0) {
fprintf(stderr, "getaddrinfo() failed: %s\n",