Expand description
Addresses and CIDR ranges: TrustedProxies and the range parsing the
IpFilter middleware (in rust-web-server’s ip_filter) is built on.
Structs§
- IpRange
Entry - One parsed range of
TrustedProxies.
Enums§
- Trusted
Proxies - Peers whose
X-Forwarded-*/Forwardedheaders rws believes (trusted_proxies, 18.24.0). The default is loopback and the private ranges load balancers usually sit in;*trusts everyone (the behaviour before 18.24),noneno one.
Constants§
- DEFAULT_
TRUSTED_ PROXIES - The default
trusted_proxies.
Functions§
- client_
ip - The address a request comes from, for everything that judges or records a client (rate limits, IP filters, the blocklist, WAF rules, logs).
- is_
valid_ entry trueifentryis an address or CIDR rangeIpFilterunderstands.