diff --git a/component/resolver/host.go b/component/resolver/host.go index ca90cd27..49168e2b 100644 --- a/component/resolver/host.go +++ b/component/resolver/host.go @@ -20,6 +20,7 @@ func NewHosts(hosts *trie.DomainTrie[HostValue]) Hosts { } } +// Return the search result and whether to match the parameter `isDomain` func (h *Hosts) Search(domain string, isDomain bool) (*HostValue, bool) { value := h.DomainTrie.Search(domain) if value == nil {