Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
liblinphone
Commits
bcb6128c
Commit
bcb6128c
authored
Aug 07, 2017
by
Simon Morlat
Browse files
Fix stun server selection based on looking for AI_V4MAPPED flag
parent
3115d817
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
coreapi/misc.c
coreapi/misc.c
+1
-0
No files found.
coreapi/misc.c
View file @
bcb6128c
...
...
@@ -579,6 +579,7 @@ static const struct addrinfo * find_nat64_addrinfo(const struct addrinfo *ai) {
static
const
struct
addrinfo
*
find_ipv4_addrinfo
(
const
struct
addrinfo
*
ai
)
{
while
(
ai
!=
NULL
)
{
if
(
ai
->
ai_family
==
AF_INET
)
break
;
if
(
ai
->
ai_family
==
AF_INET6
&&
ai
->
ai_flags
&
AI_V4MAPPED
)
break
;
ai
=
ai
->
ai_next
;
}
return
ai
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment