Skip to main content

real_ip_from_headers

Function real_ip_from_headers 

Source
pub fn real_ip_from_headers(
    headers: &HeaderMap,
    peer: IpAddr,
    trusted_proxies: &[String],
) -> IpAddr
Expand description

Resolves a client IP using raw trusted CIDRs/IPs and an explicit direct peer.