Skip to main content

validate_demo_trusted_proxy

Function validate_demo_trusted_proxy 

Source
pub fn validate_demo_trusted_proxy(
    trusted_proxy: Option<&str>,
) -> Result<(), String>
Expand description

Validates a trusted reverse-proxy address before Demo requests may use forwarded client IPs.

The request path supports an exact IPv4/IPv6 address or a matching-family CIDR.