mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-08-24 10:14:13 -05:00
happy-eyeballs: Specify AI_ADDRCONFIG for getaddrinfo
This might help to avoid returning IPv6 addresses on systems without
IPv6 connectivity.
(cherry picked from commit 1e6c375e95)
This commit is contained in:
committed by
Ryan Foster
parent
e494f93846
commit
42136433cf
Vendored
+1
@@ -194,6 +194,7 @@ static int build_addr_list(const char *hostname, int port,
|
||||
hints.ai_family = AF_UNSPEC;
|
||||
hints.ai_socktype = SOCK_STREAM;
|
||||
hints.ai_protocol = IPPROTO_TCP;
|
||||
hints.ai_flags = AI_ADDRCONFIG;
|
||||
|
||||
if (context->bind_addr_len == sizeof(struct sockaddr_in))
|
||||
hints.ai_family = AF_INET;
|
||||
|
||||
Reference in New Issue
Block a user