Expand description
Shared network helpers. Currently the trusted-proxy client-IP resolver,
reused by rate limiting, structured logging and future Geo/IP-reputation —
the real client IP is derived once and read by everyone from
RequestContext::client_ip.
Structs§
- Client
IpResolver - Pre-compiled resolver: trusted CIDRs are parsed once at construction.
- Resolved
Client Ip - Result of resolution: the chosen IP and how it was obtained.
Enums§
- IpSource
- How
client_ipwas determined — for audit/logging and to decide warnings.
Functions§
- is_
valid_ cidr - True if
sis a syntactically valid CIDR or bare IP (IPv4/IPv6). Used by config validation to reject illegaltrusted_proxiesentries at startup instead of silently dropping them at resolver-construction time.