Skip to main content

extract_client_ip

Function extract_client_ip 

Source
pub fn extract_client_ip(
    client_host: Option<&str>,
    forwarded_for: Option<&str>,
    trusted_proxies: &[String],
    proxy_depth: u32,
) -> ClientIpExtraction
Expand description

extract_client_ip: the reference entry point. client_host is the connecting peer (None for a socket connection); forwarded_for the raw X-Forwarded-For header.