mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-08 23:07:54 +00:00
fix(api): temporarily use custom client-ip header for ratelimiting
This commit is contained in:
parent
a888e9693b
commit
b2f47f8e53
2 changed files with 4 additions and 1 deletions
|
|
@ -62,7 +62,7 @@ pub async fn do_request_ratelimited<B>(
|
|||
) -> Response {
|
||||
if let Some(redis) = redis {
|
||||
let headers = request.headers().clone();
|
||||
let source_ip = header_or_unknown(headers.get("Fly-Client-IP"));
|
||||
let source_ip = header_or_unknown(headers.get("X-PluralKit-Client-IP"));
|
||||
|
||||
// https://github.com/rust-lang/rust/issues/53667
|
||||
let (rl_key, rate) = if let Some(header) = request.headers().clone().get("X-PluralKit-App")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue