Merge: - rewrites: AAAA rewrites didn't work

Close #989

* commit 'f4c29715b553b00561c7c7d68005350a5be1bf5a':
  - rewrites: AAAA rewrites didn't work
This commit is contained in:
Simon Zolin 2019-09-17 12:29:04 +03:00
commit ff0b4fa3b5
1 changed files with 1 additions and 1 deletions

View File

@ -575,7 +575,7 @@ func (s *Server) filterDNSRequest(d *proxy.DNSContext) (*dnsfilter.Result, error
resp.Answer = append(resp.Answer, a)
} else if req.Question[0].Qtype == dns.TypeAAAA {
a := s.genAAAAAnswer(req, res.IP)
a := s.genAAAAAnswer(req, ip)
a.Hdr.Name = dns.Fqdn(name)
resp.Answer = append(resp.Answer, a)
}