Skip to main content

extract_rightmost_forwarded

Function extract_rightmost_forwarded 

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

Extract the rightmost Forwarded for= IP address from a header.

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