Skip to main content

hostname_allowed

Function hostname_allowed 

Source
pub fn hostname_allowed(value: &[u8], allowed: &[u8]) -> bool
Expand description

Whether value matches an allow-list entry allowed that is a string: equal to it, *, or a *.suffix wildcard that value ends with (the root itself is not matched).