Skip to main content

trust_flag_for_host

Function trust_flag_for_host 

Source
pub fn trust_flag_for_host(host: &str) -> Option<(&'static str, String, String)>
Expand description

The [network] trust flag that already covers host, if any.

Returns the flag name, the curated pattern that matched, and that pattern’s own note, so the caller can say why the flag applies rather than asserting that it does.