]> sjero.net Git - linphone/commitdiff
Prevent using getifaddrs() to get the local IP during ICE gathering.
authorGhislain MARY <ghislain.mary@belledonne-communications.com>
Wed, 26 Sep 2012 12:00:47 +0000 (14:00 +0200)
committerGhislain MARY <ghislain.mary@belledonne-communications.com>
Wed, 26 Sep 2012 13:08:04 +0000 (15:08 +0200)
coreapi/misc.c

index df65b53f47268bd2063ced4e221ae5a11ccdd27b..be977400f62c78c4e0e63ba8f94ca165c8529e27 100644 (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;
        }