Skip to content

Commit

Permalink
Need the AI_PASSIVE flag when using dns lookups with bind().
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Nov 6, 2009
1 parent e43f1c1 commit 3a56d36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nph-offload.c
Expand Up @@ -1985,7 +1985,7 @@ static int daemonListenSocket(void)
memset(&hints, '\0', sizeof (hints));
hints.ai_family = GLISTENFAMILY;
hints.ai_socktype = SOCK_STREAM;
hints.ai_flags = AI_NUMERICSERV | AI_V4MAPPED | AI_ALL | AI_ADDRCONFIG;
hints.ai_flags = AI_NUMERICSERV | AI_V4MAPPED | AI_ALL | AI_ADDRCONFIG | AI_PASSIVE;

int rc = -1;
struct addrinfo *dns = NULL;
Expand Down

0 comments on commit 3a56d36

Please sign in to comment.