extract_client_ip

Function extract_client_ip 

Source
fn extract_client_ip(request: &Request<Body>, fallback: IpAddr) -> IpAddr
Expand description

Extracts the client IP from the request. Checks X-Forwarded-For first (for reverse proxy setups), then falls back to X-Real-IP, and finally defaults to 127.0.0.1.