Skip to main content

parse_trusted_networks

Function parse_trusted_networks 

Source
pub fn parse_trusted_networks(nets: &[String]) -> Result<Vec<CidrBlock>>
Expand description

Parse a list of CIDR strings (e.g. "100.64.0.0/10") into the network type expected by axum_token_auth::AuthConfig::trusted_networks, returning a descriptive error for the first one that fails to parse.