pub fn extract_client_ip<B>(
req: &Request<B>,
mode: &ServerMode,
) -> Option<IpAddr>Expand description
Extract client IP from request based on ServerMode
- Standalone mode: Use peer IP directly from ConnectInfo
- Proxy/StreamProxy mode: Check forwarding headers first