Ignore:
Timestamp:
May 20, 2016 4:17:00 AM (8 years ago)
Author:
ming
Message:

Re #1922: Replace IPv4 specific APIs as per Apple's recommendations

https://developer.apple.com/library/ios/documentation/NetworkingInternetWeb/Conceptual/NetworkingOverview/UnderstandingandPreparingfortheIPv6Transition/UnderstandingandPreparingfortheIPv6Transition.html#//apple_ref/doc/uid/TP40010220-CH213-SW27

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsua-lib/pjsua_media.c

    r5307 r5311  
    360360            pjstun_setting stun_opt; 
    361361 
    362             pj_ansi_strcpy(ip_addr, 
    363                            pj_inet_ntoa(pjsua_var.stun_srv.ipv4.sin_addr)); 
     362            pj_sockaddr_print(&pjsua_var.stun_srv, ip_addr,sizeof(ip_addr),0); 
    364363            stun_srv = pj_str(ip_addr); 
    365364 
     
    427426                if (status == PJ_SUCCESS) { 
    428427                    if (pjsua_var.stun_srv.addr.sa_family != 0) { 
    429                         pj_ansi_strcpy(ip_addr, 
    430                             pj_inet_ntoa(pjsua_var.stun_srv.ipv4.sin_addr)); 
     428                        pj_sockaddr_print(&pjsua_var.stun_srv, 
     429                                          ip_addr, sizeof(ip_addr), 0); 
    431430                        stun_srv = pj_str(ip_addr); 
    432431                    } else { 
Note: See TracChangeset for help on using the changeset viewer.