censor user credentials in logs by default

This commit is contained in:
Martin Michelsen
2026-05-16 16:58:27 -07:00
parent ecc61b7d1f
commit 0d5cfc6ccc
25 changed files with 445 additions and 105 deletions
+3 -1
View File
@@ -883,7 +883,9 @@ static asio::awaitable<HandlerResult> S_19_U_14(shared_ptr<Client> c, Channel::M
old_channel->language,
std::format("C-{} proxy remote server at {}", c->id, netloc_str),
old_channel->terminal_send_color,
old_channel->terminal_recv_color);
old_channel->terminal_recv_color,
old_channel->censor_received_credentials,
old_channel->censor_sent_credentials);
c->proxy_session->server_channel = new_channel;
asio::co_spawn(*s->io_context, handle_proxy_server_commands(c, c->proxy_session, new_channel), asio::detached);
c->log.info_f("Server channel connected");