diff --git a/src/http/request.rs b/src/http/request.rs index 1eb9a81..4990f3e 100644 --- a/src/http/request.rs +++ b/src/http/request.rs @@ -282,6 +282,8 @@ fn clear_path_end_slash(input: &str) -> &str { fn trust_addr_proxy(headers : &HashMap,remote_addr : &str) -> String { if let Some(remote_ip) = headers.get("X-Real-IP") { remote_ip.to_string() + } else if let Some(remote_ip) = headers.get("X-Real-Ip") { + remote_ip.to_string() } else { remote_addr.to_string() }