Skip to main content

Module client_ip

Module client_ip 

Source
Expand description

Actix helpers for trusted-proxy-aware client IP extraction.

The product-neutral parsing rules live in aster_forge_utils::net. This module only adapts Actix HeaderMap values into those helpers so application services do not need to repeat X-Forwarded-For extraction code.

Functionsยง

real_ip_from_headers
Resolves the client IP from Actix headers, a direct peer IP, and raw trusted proxy entries.
real_ip_from_trusted_headers
Resolves the client IP from Actix headers, a direct peer IP, and parsed trusted proxy entries.