Skip to main content

Crate tower_real_ip

Crate tower_real_ip 

Source
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-For parsing (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.
RealIpLayer
RealIpService
TrustedProxyConfig
Configuration holding the list of trusted networks.