mirror of
https://github.com/tmate-io/tmate.git
synced 2025-06-24 19:41:22 +02:00
Only use IPv4/IPv6 when we can use them
This commit is contained in:
parent
a87d3af309
commit
81022ee8c7
@ -88,7 +88,7 @@ static void lookup_and_connect(void)
|
|||||||
|
|
||||||
memset(&hints, 0, sizeof(hints));
|
memset(&hints, 0, sizeof(hints));
|
||||||
hints.ai_family = AF_UNSPEC;
|
hints.ai_family = AF_UNSPEC;
|
||||||
hints.ai_flags = 0;
|
hints.ai_flags = EVUTIL_AI_ADDRCONFIG;
|
||||||
hints.ai_socktype = SOCK_STREAM;
|
hints.ai_socktype = SOCK_STREAM;
|
||||||
hints.ai_protocol = IPPROTO_TCP;
|
hints.ai_protocol = IPPROTO_TCP;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user