real_ip

Function real_ip 

Source
pub fn real_ip(
    headers: &HeaderMap,
    remote: IpAddr,
    trusted_proxies: &[IpNet],
) -> Option<IpAddr>
Expand description

Get the “real-ip” of an incoming request.

See the top level documentation for more usage details.