filtering: imp code

This commit is contained in:
Ainar Garipov
2022-08-25 18:44:19 +03:00
parent 57c0b1203e
commit fa76ad2a3c
4 changed files with 48 additions and 27 deletions

View File

@@ -130,10 +130,9 @@ func matchDomainWildcard(host, wildcard string) (ok bool) {
//
// The sorting priority:
//
// A and AAAA > CNAME
// wildcard > exact
// lower level wildcard > higher level wildcard
//
// 1. A and AAAA > CNAME
// 2. wildcard > exact
// 3. lower level wildcard > higher level wildcard
type rewritesSorted []*LegacyRewrite
// Len implements the sort.Interface interface for legacyRewritesSorted.