Refactor: A faster DomainMatcher implementation (#348)

Co-authored-by: DarthVader <61409963+darsvador@users.noreply.github.com>
This commit is contained in:
秋のかえでandDarthVader authored and GitHub committed 2021-04-18 13:21:17 +08:00
1 parent bf94fb53ca
commit 7b7084f825
15 files changed
+912 -52

No files matched your search

-1
View File
@@ -348,7 +348,6 @@ func (s *Server) LookupIP(domain string, option dns.IPOption) ([]net.IP, error)
if domain == "" {
return nil, newError("empty domain name")
}
domain = strings.ToLower(domain)
// normalize the FQDN form query
if strings.HasSuffix(domain, ".") {