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_acc.c

    r5308 r5311  
    30323032    pj_in6_addr dummy6; 
    30333033 
    3034     /* First check with inet_aton() */ 
    3035     if (pj_inet_aton(host, &dummy) > 0) 
     3034    /* First check if this is an IPv4 address */ 
     3035    if (pj_inet_pton(pj_AF_INET(), host, &dummy) == PJ_SUCCESS) 
    30363036        return 4; 
    30373037 
Note: See TracChangeset for help on using the changeset viewer.