aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/listen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/listen.c b/src/listen.c
index 9a4d60555..0e2dd6611 100644
--- a/src/listen.c
+++ b/src/listen.c
@@ -190,7 +190,7 @@ static void parseListenConfigParam(unsigned int port, ConfigParam * param)
DEBUG("binding to address for %s\n", param->value);
memset(&hints, 0, sizeof(hints));
- hints.ai_flags = AI_ADDRCONFIG;
+ hints.ai_flags = AI_PASSIVE | AI_ADDRCONFIG;
hints.ai_family = PF_UNSPEC;
hints.ai_socktype = SOCK_STREAM;
hints.ai_protocol = IPPROTO_TCP;