Skip to content

Commit

Permalink
Avoid service lookup for port number
Browse files Browse the repository at this point in the history
  • Loading branch information
msantos committed May 24, 2011
1 parent 67452c7 commit 4f1ae12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion c_src/procket_cmd.c
Expand Up @@ -228,7 +228,7 @@ procket_lookup_socket(PROCKET_STATE *ps)
hints.ai_family = ps->family;
hints.ai_socktype = ps->type;
hints.ai_protocol = ps->protocol;
hints.ai_flags = AI_NUMERICHOST | AI_PASSIVE;
hints.ai_flags = AI_NUMERICHOST | AI_NUMERICSERV | AI_PASSIVE;

err = getaddrinfo(ps->address, ps->port, &hints, &res);

Expand Down

0 comments on commit 4f1ae12

Please sign in to comment.