Commit 6f543ecd authored by Curtis Mattoon's avatar Curtis Mattoon
Browse files

Fix issues #1055 #1056 #1057 introduced by #835

parent 1328c295
......@@ -62,7 +62,7 @@ func matchFilter(filters []string, domain string, emptyval bool) bool {
strippedDomain := strings.ToLower(strings.TrimSuffix(domain, "."))
if filter == "" {
return true
return emptyval
} else if strings.HasPrefix(filter, ".") && strings.HasSuffix(strippedDomain, filter) {
return true
} else if strings.Count(strippedDomain, ".") == strings.Count(filter, ".") {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment