Only use IPv4/IPv6 when we can use them

This commit is contained in:
Nicolas Viennot 2016-01-02 09:45:34 -05:00
parent a87d3af309
commit 81022ee8c7

View File

@ -88,7 +88,7 @@ static void lookup_and_connect(void)
memset(&hints, 0, sizeof(hints));
hints.ai_family = AF_UNSPEC;
hints.ai_flags = 0;
hints.ai_flags = EVUTIL_AI_ADDRCONFIG;
hints.ai_socktype = SOCK_STREAM;
hints.ai_protocol = IPPROTO_TCP;