Dash:
[t2.git] / package / multimedia / obs-studio / prefer-ipv6.patch
blobe6e4807ec0ab8ef6988da4b76d8c15f83ef7e8f1
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
3 #
4 # T2 SDE: package/.../obs-studio/prefer-ipv6.patch
5 # Copyright (C) 2019 The T2 SDE Project
6 #
7 # More information can be found in the files COPYING and README.
8 #
9 # This patch file is dual-licensed. It is available under the license the
10 # patched project is licensed under, as long as it is an OpenSource license
11 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
12 # of the GNU General Public License as published by the Free Software
13 # Foundation; either version 2 of the License, or (at your option) any later
14 # version.
15 # --- T2-COPYRIGHT-NOTE-END ---
17 --- obs-studio-23.2.1/plugins/obs-outputs/librtmp/rtmp.c.vanilla 2019-08-08 20:01:31.499928242 +0200
18 +++ obs-studio-23.2.1/plugins/obs-outputs/librtmp/rtmp.c 2019-08-08 20:02:02.179929514 +0200
19 @@ -859,10 +859,10 @@
20 goto finish;
23 - // prefer ipv4 results, since lots of ISPs have broken ipv6 connectivity
24 + // prefer ipv6 results, since lots of ISPs have broken ipv6 connectivity
25 for (ptr = result; ptr != NULL; ptr = ptr->ai_next)
27 - if (ptr->ai_family == AF_INET && (!addrlen_hint || ptr->ai_addrlen == addrlen_hint))
28 + if (ptr->ai_family == AF_INET6 && (!addrlen_hint || ptr->ai_addrlen == addrlen_hint))
30 memcpy(service, ptr->ai_addr, ptr->ai_addrlen);
31 *addrlen = (socklen_t)ptr->ai_addrlen;
32 @@ -874,7 +874,7 @@
34 for (ptr = result; ptr != NULL; ptr = ptr->ai_next)
36 - if (ptr->ai_family == AF_INET6 && (!addrlen_hint || ptr->ai_addrlen == addrlen_hint))
37 + if (ptr->ai_family == AF_INET && (!addrlen_hint || ptr->ai_addrlen == addrlen_hint))
39 memcpy(service, ptr->ai_addr, ptr->ai_addrlen);
40 *addrlen = (socklen_t)ptr->ai_addrlen;