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
606d3c0a
Commit
606d3c0a
authored
Mar 22, 2013
by
Simon Morlat
Browse files
fix again
parent
b37cdb67
Changes
1
Hide whitespace changes
Inline
Side-by-side
coreapi/misc.c
View file @
606d3c0a
...
...
@@ -1125,18 +1125,17 @@ int linphone_core_get_local_ip_for(int type, const char *dest, char *result){
* try to find 'the' running interface with getifaddrs*/
#ifdef HAVE_GETIFADDRS
if
(
dest
==
NULL
)
{
/*we use getifaddrs for lookup of default interface */
int
found_ifs
;
found_ifs
=
get_local_ip_with_getifaddrs
(
type
,
result
,
LINPHONE_IPADDR_SIZE
);
if
(
found_ifs
==
1
){
return
0
;
}
else
if
(
found_ifs
<=
0
){
/*absolutely no network on this machine */
return
-
1
;
}
}
/*we use getifaddrs for lookup of default interface */
int
found_ifs
;
found_ifs
=
get_local_ip_with_getifaddrs
(
type
,
result
,
LINPHONE_IPADDR_SIZE
);
if
(
found_ifs
==
1
){
return
0
;
}
else
if
(
found_ifs
<=
0
){
/*absolutely no network on this machine */
return
-
1
;
}
#endif
return
0
;
}
...
...
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