chore: add comment
This commit is contained in:
parent
e5eab112d0
commit
05f59ea57f
1 changed files with 1 additions and 0 deletions
|
@ -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) {
|
func (h *Hosts) Search(domain string, isDomain bool) (*HostValue, bool) {
|
||||||
value := h.DomainTrie.Search(domain)
|
value := h.DomainTrie.Search(domain)
|
||||||
if value == nil {
|
if value == nil {
|
||||||
|
|
Loading…
Reference in a new issue