commit fb0cb7081e7276c006444afb9f9decbab6bedaff from: Omar Polo via: Thomas Adam date: Thu Jun 01 10:18:37 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 - bccb4ec2e9c0dd06dedd91623b6712162c4ec0bc commit + fb0cb7081e7276c006444afb9f9decbab6bedaff blob - 5adfc41c4662e8de75f3b26a7e2597863b065283 blob + 920aff4245e78df0835a5a015cdb9431a5643348 --- gotwebd/parse.y +++ gotwebd/parse.y @@ -1012,8 +1012,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)