Skip to main content

client_ip

Function client_ip 

Source
pub fn client_ip(req: &Request) -> Option<String>
Expand description

The client’s address: Cf-Connecting-IP when the peer is loopback (the tunnel; Cloudflare sets that header and clients cannot), else the peer.