Commit ac0af919 authored by Max Kellermann's avatar Max Kellermann

listen: enable AI_PASSIVE

The getaddrinfo() flag AI_PASSIVE should be used when resolving addresses for the bind() system call.
parent c06ce447
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment