Censor user password when logging Authenticate message
This commit is contained in:
parent
c4ef94aa16
commit
8b74065b80
|
@ -471,7 +471,13 @@ impl Connection {
|
||||||
) -> Result<(), Error> {
|
) -> Result<(), Error> {
|
||||||
match packet {
|
match packet {
|
||||||
ControlPacket::Authenticate(mut message) => {
|
ControlPacket::Authenticate(mut message) => {
|
||||||
println!("MSG Authenticate: {:?}", message);
|
println!("MSG Authenticate: {:?}", {
|
||||||
|
let mut message = message.clone();
|
||||||
|
if message.get_password() != "" {
|
||||||
|
message.set_password("{{snip}}".to_string());
|
||||||
|
}
|
||||||
|
message
|
||||||
|
});
|
||||||
if message.get_webrtc() {
|
if message.get_webrtc() {
|
||||||
// strip webrtc support from the connection (we will be providing it)
|
// strip webrtc support from the connection (we will be providing it)
|
||||||
message.clear_webrtc();
|
message.clear_webrtc();
|
||||||
|
|
Loading…
Reference in a new issue