rewrite: storage
This commit is contained in:
@@ -225,7 +225,7 @@ func (s *DefaultStorage) resetRules() (err error) {
|
|||||||
// matchesQType returns true if dnsrewrite matches the question type qt.
|
// matchesQType returns true if dnsrewrite matches the question type qt.
|
||||||
func matchesQType(dnsrr *rules.DNSRewrite, qt uint16) (ok bool) {
|
func matchesQType(dnsrr *rules.DNSRewrite, qt uint16) (ok bool) {
|
||||||
// Add CNAMEs, since they match for all types requests.
|
// Add CNAMEs, since they match for all types requests.
|
||||||
if dnsrr.RRType == dns.TypeCNAME {
|
if dnsrr.RRType == dns.TypeCNAME || dnsrr.NewCNAME != "" {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user