mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-18 11:38:08 +00:00
fix bad handling of link-local ipv6 addresses
This commit is contained in:
parent
e942c6590b
commit
eba52ef155
1 changed files with 1 additions and 1 deletions
|
|
@ -1094,7 +1094,7 @@ static int get_local_ip_for_with_connect(int type, const char *dest, char *resul
|
|||
ms_error("getnameinfo error: %s",strerror(errno));
|
||||
}
|
||||
/*avoid ipv6 link-local addresses*/
|
||||
if (type==AF_INET6 && strchr(result,'%')!=NULL){
|
||||
if (p_addr->sa_family==AF_INET6 && strchr(result,'%')!=NULL){
|
||||
strcpy(result,"::1");
|
||||
close_socket(sock);
|
||||
return -1;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue