Commit 682d3356 authored by Emden R. Gansner's avatar Emden R. Gansner

Replace AI_PASSIVE flag with AI_ADDRCONFIG | AI_NUMERICSERV

parent 2cdcda92
......@@ -293,7 +293,7 @@ static FILE *serverconnect (char *name) {
hints.ai_family = AF_UNSPEC; /* Allow IPv4 or IPv6 */
hints.ai_socktype = SOCK_STREAM;/* Stream socket */
hints.ai_flags = AI_PASSIVE; /* For wildcard IP address */
hints.ai_flags = AI_ADDRCONFIG | AI_NUMERICSERV;
hints.ai_protocol = 0; /* Any protocol */
hints.ai_canonname = NULL;
hints.ai_addr = NULL;
......
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