fix bad guess of ip addresses with getifaddrs() (ipv6)

This commit is contained in:
Simon Morlat 2010-06-09 14:49:48 +02:00
parent 6672dec459
commit 10294f3ceb

View file

@ -683,6 +683,7 @@ static int get_local_ip_with_getifaddrs(int type, char *address, int size)
if (strchr(address, '%') == NULL) { /*avoid ipv6 link-local addresses */
/*ms_message("getifaddrs() found %s",address);*/
ret++;
break;
}
}
}