Skip to main content

extract_rightmost_x_forwarded_for

Function extract_rightmost_x_forwarded_for 

Source
pub fn extract_rightmost_x_forwarded_for(
    headers: &HeaderMap,
) -> Result<Option<IpAddr>, Error>
Expand description

Extract the rightmost X-Forwarded-For IP address from a header.

This reads headers and delegates to extract_header_x_forwarded_for, preserving its missing and strict error behavior. It does not establish trust in the returned assertion.