summaryrefslogtreecommitdiffstats
path: root/src/slave
diff options
context:
space:
mode:
Diffstat (limited to 'src/slave')
-rw-r--r--src/slave/kpropd.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/slave/kpropd.c b/src/slave/kpropd.c
index 259d633681..d20d86561c 100644
--- a/src/slave/kpropd.c
+++ b/src/slave/kpropd.c
@@ -245,11 +245,7 @@ get_wildcard_addr(struct addrinfo **res)
memset(&hints, 0, sizeof(hints));
hints.ai_socktype = SOCK_STREAM;
- hints.ai_flags = AI_PASSIVE;
-#ifdef AI_ADDRCONFIG
- /* Try to avoid IPv6 if the host has no IPv6 interface addresses. */
- hints.ai_flags |= AI_ADDRCONFIG;
-#endif
+ hints.ai_flags = AI_PASSIVE | AI_ADDRCONFIG;
#ifdef KRB5_USE_INET6
hints.ai_family = AF_INET6;
error = getaddrinfo(NULL, port, &hints, res);