commit fb307946174c95e32d2048584c6ab1ce24f3ea00 from: Omar Polo date: Mon May 29 18:09:58 2023 UTC PF_UNSPEC -> AF_UNSPEC While they're the same value, it's more correct to use AF_UNSPEC in this case. While here, change SOCK_DGRAM to SOCK_STREAM since it's what we'll be using. ok stsp@ 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)