use the standard x-forwarded-for instead of x-real-ip to get client ip from reverse proxy

This commit is contained in:
Crispy 2024-07-23 13:27:17 +02:00
parent 97f4c4b37a
commit 2908f8e9dc

View file

@ -65,7 +65,7 @@ impl Request {
match key {
"host" => host = Some(value.to_owned()),
"range" => range = RequestRange::parse(value),
"x-real-ip" => real_ip = Some(value.to_owned()),
"x-forwarded-for" => real_ip = Some(value.to_owned()),
"user-agent" => user_agent = value.to_owned(),
_ => (),
}