From 05f59ea57fded61615d58ce05ee1f508459f5de7 Mon Sep 17 00:00:00 2001 From: gVisor bot Date: Sun, 12 Mar 2023 15:05:28 +0800 Subject: [PATCH] chore: add comment --- component/resolver/host.go | 1 + 1 file changed, 1 insertion(+) 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 {