use the standard x-forwarded-for instead of x-real-ip to get client ip from reverse proxy
This commit is contained in:
parent
97f4c4b37a
commit
2908f8e9dc
1 changed files with 1 additions and 1 deletions
|
@ -65,7 +65,7 @@ impl Request {
|
||||||
match key {
|
match key {
|
||||||
"host" => host = Some(value.to_owned()),
|
"host" => host = Some(value.to_owned()),
|
||||||
"range" => range = RequestRange::parse(value),
|
"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(),
|
"user-agent" => user_agent = value.to_owned(),
|
||||||
_ => (),
|
_ => (),
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue