corrects case where there might be multiple matching allowed domains

This commit is contained in:
2022-03-21 17:57:14 -05:00
parent 21193b4faa
commit fbbc922b04

View File

@ -47,8 +47,8 @@ func cleanBadDomains(domains []string) []string {
break
}
if r.MatchString(v) {
log.Printf("[DEBUG] Removing allowed matching item: %s\n", v)
domains = removeStringFromSlice(domains, k)
break
}
}
}