Commit c21b2b31 authored by Jakub Adam's avatar Jakub Adam

agent: don't print TURN password unless the logging is verbose

Limits accidental leakage of secret information.
parent 280e36a5
Pipeline #18707 passed with stages
in 8 minutes and 44 seconds
......@@ -2702,7 +2702,8 @@ nice_agent_set_relay_info(NiceAgent *agent,
nice_debug ("Agent %p: added relay server [%s]:%d of type %d to s/c %d/%d "
"with user/pass : %s -- %s", agent, server_ip, server_port, type,
stream_id, component_id, username, password);
stream_id, component_id, username,
nice_debug_is_verbose() ? password : "****");
component->turn_servers = g_list_append (component->turn_servers, turn);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment