Skip to content

Commit

Permalink
Bug 1391857 - fixing ctx flags for e10s stun addr gathering. r=drno
Browse files Browse the repository at this point in the history
In the case of e10s, the ctx flags for default route only (and less
importantly in this case, proxy only) were not set on the ice ctx
when SetStunAddrs was called in PeerConnectionMedia.

MozReview-Commit-ID: CldUpJfaaH3

--HG--
extra : rebase_source : 6223722275d4741519890d4d2b8436b05ca43155
  • Loading branch information
mfromanmoz authored and vpoddubchak committed Apr 15, 2020
1 parent a0ea3b7 commit f271be9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/ice/ice_ctx.c
Original file line number Diff line number Diff line change
Expand Up @@ -749,6 +749,10 @@ int nr_ice_set_local_addresses(nr_ice_ctx *ctx,
addr_ct = force_addr_ct;
}

r_log(LOG_ICE, LOG_DEBUG,
"ICE(%s): use only default local addresses: %s\n",
ctx->label,
(char*)(ctx->flags & NR_ICE_CTX_FLAGS_ONLY_DEFAULT_ADDRS?"yes":"no"));
if ((!addr_ct) || (ctx->flags & NR_ICE_CTX_FLAGS_ONLY_DEFAULT_ADDRS)) {
/* Get just the default IPv4 and IPv6 addrs */
if(!nr_ice_get_default_local_address(ctx, NR_IPV4, local_addrs, addr_ct,
Expand Down

0 comments on commit f271be9

Please sign in to comment.