mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2025-03-14 22:48:35 +03:00
rewrite: storage
This commit is contained in:
parent
fb3602853a
commit
e657899c32
1 changed files with 1 additions and 1 deletions
|
@ -225,7 +225,7 @@ func (s *DefaultStorage) resetRules() (err error) {
|
|||
// matchesQType returns true if dnsrewrite matches the question type qt.
|
||||
func matchesQType(dnsrr *rules.DNSRewrite, qt uint16) (ok bool) {
|
||||
// Add CNAMEs, since they match for all types requests.
|
||||
if dnsrr.RRType == dns.TypeCNAME {
|
||||
if dnsrr.RRType == dns.TypeCNAME || dnsrr.NewCNAME != "" {
|
||||
return true
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue