mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 00:01:50 +00:00
Bug 1246363: add logging to detect if relay only option is set. r=mjf
--HG-- extra : rebase_source : b5c62327575846c894ce8e8b252bb7397ea913ac
This commit is contained in:
parent
90bd4d3cee
commit
593e9d2dc5
@ -252,8 +252,15 @@ static int nr_ice_component_initialize_udp(struct nr_ice_ctx_ *ctx,nr_ice_compon
|
||||
cand=0;
|
||||
}
|
||||
}
|
||||
else{
|
||||
r_log(LOG_ICE,LOG_WARNING,"ICE(%s): relay only option results in no host candidate for %s",ctx->label,addrs[i].addr.as_string);
|
||||
}
|
||||
|
||||
#ifdef USE_TURN
|
||||
if ((ctx->flags & NR_ICE_CTX_FLAGS_RELAY_ONLY) &&
|
||||
(ctx->turn_server_ct == 0)) {
|
||||
r_log(LOG_ICE,LOG_ERR,"ICE(%s): relay only option is set without any TURN server configured",ctx->label);
|
||||
}
|
||||
/* And both a srvrflx and relayed candidate for each TURN server (unless
|
||||
we're in relay-only mode, in which case just the relayed one) */
|
||||
for(j=0;j<ctx->turn_server_ct;j++){
|
||||
@ -418,6 +425,7 @@ static int nr_ice_component_initialize_tcp(struct nr_ice_ctx_ *ctx,nr_ice_compon
|
||||
ABORT(r);
|
||||
}
|
||||
if (ctx->flags & NR_ICE_CTX_FLAGS_RELAY_ONLY) {
|
||||
r_log(LOG_ICE,LOG_WARNING,"ICE(%s): relay only option results in ICE TCP being disabled",ctx->label);
|
||||
ice_tcp_disabled = 1;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user