Create socket with correct family as given by sockshost
If sockshost
is an IPv6 address tor-resolve currently fails connecting, because the socket is only created with PF_INET. This change automatically detects the family to use.
If sockshost
is an IPv6 address tor-resolve currently fails connecting, because the socket is only created with PF_INET. This change automatically detects the family to use.