Expand description
§Tower Real IP
A robust middleware for extracting the real client IP address from HTTP requests, designed for environments behind trusted proxies (Load Balancers, CDNs, Nginx).
§Features
- Supports
X-Forwarded-Forparsing (Right-to-Left security traversal). - Supports CIDR ranges (IPv4 & IPv6).
- Auto-configuration from Environment Variables (split by
;). - Axum 0.8 Extractor support.
Structs§
- RealIp
- The resolved real IP address of the client.
- Real
IpLayer - Real
IpService - Trusted
Proxy Config - Configuration holding the list of trusted networks.