pub fn normalize_network_domain(raw: &str) -> Option<String>Expand description
Normalizes a hostname or IP literal for exact domain policy matching.
Strips surrounding whitespace, optional IPv6 brackets, and trailing DNS root dots, then lowercases ASCII characters. Rejects empty strings, control characters, whitespace, scheme/path/query/userinfo delimiters, and overly long hostnames.