This commit is contained in:
Mateusz Gruszczyński committed 2026-10-11 22:55:22 +02:00
1 parent 4cc994b3bc
commit 79fd198949
48 files changed
+922 -202

No files matched your search

+2 -1
View File
@@ -250,11 +250,12 @@ async fn forward_request(
);
}
if internal_dispatch.is_none() {
if let Err(limited) = state.rate_limiter.check(
if let Err(limited) = state.rate_limiter.check_with_user_agent(
snapshot.envelope.revision,
&frontend.id,
context.client_ip,
country.as_deref(),
request.headers().get(http::header::USER_AGENT).and_then(|value| value.to_str().ok()),
&frontend.rate_limit,
) {
let mut response = error(