Expand description
Defines sources for trusted client IP extraction.
IpSource enumerates the TCP peer address and supported forwarding
headers. The default uses the TCP peer address without trusting a proxy.
Re-exportsΒ§
use std::net::IpAddr;πuse std::net::Ipv4Addr;πuse std::net::SocketAddr;πuse serde::Deserialize;πuse serde::Deserialize;πuse crate::implement;π
EnumsΒ§
- IpSource
- Selects the source used to determine the connecting clientβs IP address.
ConstantsΒ§
- UNIX_
SOCKET_ PEER - The stand-in peer address the Unix listener reports for every client.