Ignore:
Timestamp:
Jun 12, 2019 5:04:32 AM (4 years ago)
Author:
ming
Message:

Re #2198:

  • Do not return IPv6 address for loop transport
  • Fixed failed PJSIP test because of result count mismatch due to the additional IPv6 address
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsip/sip_resolve.c

    r5998 r6025  
    284284                } 
    285285 
    286                 if (af == pj_AF_INET6() || PJSIP_MAX_RESOLVED_ADDRESSES > 1) 
     286                if (af == pj_AF_INET6() || 
     287                    (type != PJSIP_TRANSPORT_LOOP_DGRAM && 
     288                     PJSIP_MAX_RESOLVED_ADDRESSES > 1)) 
    287289                { 
    288290                    /* Generate a synthesized IPv6 address, if possible. */ 
Note: See TracChangeset for help on using the changeset viewer.