Index: code/qcommon/net_ip.c =================================================================== --- code/qcommon/net_ip.c (revision 1343) +++ code/qcommon/net_ip.c (working copy) @@ -266,14 +266,15 @@ static qboolean Sys_StringToSockaddr(const char *s, struct sockaddr *sadr, int sadr_len, sa_family_t family) { struct addrinfo hints, *res = NULL, *search; + struct addrinfo *hintsp; int retval; memset(sadr, '\0', sizeof(*sadr)); memset(&hints, '\0', sizeof(hints)); hints.ai_family = family; - - retval = getaddrinfo(s, NULL, &hints, &res); + hintsp = (family == AF_UNSPEC) ? NULL : &hints; + retval = getaddrinfo(s, NULL, hintsp, &res); if(!retval) {