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 the client IP from Actix headers, a direct peer IP, and parsed trusted proxy entries.