interface_allowed

Function interface_allowed 

Source
pub fn interface_allowed(
    name: &str,
    whitelist: &[String],
    blacklist: &[String],
) -> bool
Expand description

Returns true if name passes the whitelist/blacklist filter.

  • Blacklist is checked first: any match → denied.
  • Whitelist is checked next: at least one match required (empty = allow all).