Someone reported being unable to connect with the error "Address family not supported", which is probably being returned by socket(). It is likely a system where getaddrinfo() is returning AF_INET6 addresses, but socket() won't create AF_INET6 sockets. To handle this case, we loop over all the addresses returned by getaddrinfo() until we find one that socket() will accept.
221 KiB
221 KiB