Skip to main content

parse_trusted_proxies

Function parse_trusted_proxies 

Source
pub fn parse_trusted_proxies(trusted_proxies: &[String]) -> Vec<IpNet>
Expand description

Parses trusted proxy entries as CIDR networks or single IP addresses.

Invalid entries are skipped after emitting a warning. This mirrors the fail-open-at-startup behavior used by the application repositories: one bad optional proxy entry should not prevent the service from starting, but it also must not become trusted.