Commit Diff


commit - abf3e3f40c20ebf4efdce3c7e83efe11d0065ed0
commit + fb307946174c95e32d2048584c6ab1ce24f3ea00
blob - d01669e79c40ee6a64a1ed544069b368ac00bac0
blob + bd616e146ccf4605ac53053dafa9b17cc39b8b86
--- gotwebd/parse.y
+++ gotwebd/parse.y
@@ -1011,8 +1011,8 @@ host(const char *s, struct server *new_srv, int max,
 		return (cnt);
 
 	memset(&hints, 0, sizeof(hints));
-	hints.ai_family = PF_UNSPEC;
-	hints.ai_socktype = SOCK_DGRAM; /* DUMMY */
+	hints.ai_family = AF_UNSPEC;
+	hints.ai_socktype = SOCK_STREAM; /* DUMMY */
 	hints.ai_flags = AI_ADDRCONFIG;
 	error = getaddrinfo(s, NULL, &hints, &res0);
 	if (error == EAI_AGAIN || error == EAI_NODATA || error == EAI_NONAME)