Changeset 5481 for pjproject/trunk/pjnath/src/pjnath/ice_strans.c
- Timestamp:
- Nov 14, 2016 6:13:01 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjnath/src/pjnath/ice_strans.c
r5474 r5481 1992 1992 comp->default_cand = (unsigned)(cand - comp->cand_list); 1993 1993 1994 /* Prefer IPv4 relay as default candidate for better connectivity 1995 * with IPv4 endpoints. 1996 */ 1997 if (cand->addr.addr.sa_family != pj_AF_INET()) { 1998 for (i=0; i<comp->cand_cnt; ++i) { 1999 if (comp->cand_list[i].type == PJ_ICE_CAND_TYPE_RELAYED && 2000 comp->cand_list[i].addr.addr.sa_family == pj_AF_INET() && 2001 comp->cand_list[i].status == PJ_SUCCESS) 2002 { 2003 comp->default_cand = i; 2004 break; 2005 } 2006 } 2007 } 2008 1994 2009 PJ_LOG(4,(comp->ice_st->obj_name, 1995 2010 "Comp %d: TURN allocation complete, relay address is %s",
Note: See TracChangeset
for help on using the changeset viewer.