mirror of
https://github.com/outbackdingo/firezone.git
synced 2026-01-27 10:18:54 +00:00
chore(relay): log all failed requests on warn (#4700)
This was discussed with @AndrewDryga to allow us detecting potential attacks. Some amount of authentication failures are expected during normal operation because TURN has this system of nonces which can only be used a certain number of times. Resolves: #4550.
This commit is contained in:
@@ -315,12 +315,10 @@ where
|
||||
|
||||
error_response.add_attribute(Nonce::new(new_nonce.to_string()).unwrap());
|
||||
error_response.add_attribute((*FIREZONE).clone());
|
||||
|
||||
tracing::debug!(target: "relay", "{} failed: {}", error_response.method(), error.reason_phrase());
|
||||
} else {
|
||||
tracing::warn!(target: "relay", "{} failed: {}", error_response.method(), error.reason_phrase());
|
||||
}
|
||||
|
||||
tracing::warn!(target: "relay", "{} failed: {}", error_response.method(), error.reason_phrase());
|
||||
|
||||
self.send_message(error_response, sender);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user