Changeset 5340


Ignore:
Timestamp:
Jun 8, 2016 8:52:18 AM (8 years ago)
Author:
nanang
Message:

Re #422: Omit IPv6 link-local address in gathering ICE candidate.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjnath/src/pjnath/ice_strans.c

    r5339 r5340  
    594594            } 
    595595 
     596            /* Ignore IPv6 link-local address */ 
     597            if (stun_cfg->af == pj_AF_INET6()) { 
     598                const pj_in6_addr *a = &addr->ipv6.sin6_addr; 
     599                if (a->s6_addr[0] == 0xFE && (a->s6_addr[1] & 0xC0) == 0x80) 
     600                    continue; 
     601            } 
     602 
    596603            cand = &comp->cand_list[comp->cand_cnt]; 
    597604 
Note: See TracChangeset for help on using the changeset viewer.