Prevent using getifaddrs() to get the local IP during ICE gathering.

This commit is contained in:
Ghislain MARY 2012-09-26 14:00:47 +02:00
parent b1f7136e1b
commit 650cb5b160

View file

@ -620,7 +620,7 @@ int linphone_core_gather_ice_candidates(LinphoneCore *lc, LinphoneCall *call)
lc->vtable.display_status(lc, _("ICE local candidates gathering in progress..."));
/* Gather local host candidates. */
if (linphone_core_get_local_ip_for(AF_INET, NULL, local_addr) < 0) {
if (linphone_core_get_local_ip_for(AF_INET, server, local_addr) < 0) {
ms_error("Fail to get local ip");
return -1;
}