Skip to main content

is_trusted_proxy

Function is_trusted_proxy 

Source
pub fn is_trusted_proxy(connecting: &str, trusted_proxies: &[String]) -> bool
Expand description

_proxy_matches / _is_trusted_proxy: a bare entry compares exactly (the unix token never matches a real peer), a CIDR entry contains the canonicalized address.