Skip to content

Commit

Permalink
filtering: fix doc
Browse files Browse the repository at this point in the history
  • Loading branch information
EugeneOne1 committed Nov 16, 2021
1 parent 7ffafce commit 006b67b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions internal/filtering/filtering.go
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,10 @@ type Result struct {

// ReverseHosts is the reverse lookup rewrite result. It is empty unless
// Reason is set to RewrittenAutoHosts.
//
// TODO(e.burkov): There is no need for AutoHosts-related fields any more
// since the hosts container now uses $dnsrewrite rules. These fields are
// only used in query log to decode old format.
ReverseHosts []string `json:",omitempty"`

// IPList is the lookup rewrite result. It is empty unless Reason is set to
Expand Down Expand Up @@ -476,10 +480,9 @@ func (d *DNSFilter) matchSysHosts(
// Check DNS rewrites first, because the API there is a bit awkward.
res = d.processDNSRewrites(dnsr)
res.Reason = RewrittenAutoHosts
// TODO(e.burkov): !! Put the real issue number.
// TODO(e.burkov): Put real hosts-syntax rules.
//
// See https://github.com/AdguardTeam/AdGuardHome/issues/XXXX.
// See https://github.com/AdguardTeam/AdGuardHome/issues/3846.
res.Rules = nil
}

Expand Down

0 comments on commit 006b67b

Please sign in to comment.