Skip to main content

real_ip_from_trusted_headers

Function real_ip_from_trusted_headers 

Source
pub fn real_ip_from_trusted_headers(
    headers: &HeaderMap,
    peer: IpAddr,
    trusted: &[IpNet],
) -> IpAddr
Expand description

Resolves a client IP using parsed trusted proxies. Invalid forwarded values fall back to peer.