matches

fun matches(hostname: String): Boolean(source)

Returns true if the given hostname is included and not excluded.

  • If hostname matches any exclude pattern, returns false.

  • If no include patterns are configured, all non-excluded hosts match.

  • Otherwise hostname must match at least one include pattern.