From f4c29715b553b00561c7c7d68005350a5be1bf5a Mon Sep 17 00:00:00 2001 From: Simon Zolin Date: Mon, 16 Sep 2019 16:28:00 +0300 Subject: [PATCH] - rewrites: AAAA rewrites didn't work --- dnsforward/dnsforward.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dnsforward/dnsforward.go b/dnsforward/dnsforward.go index 13b97867..59b2a6d3 100644 --- a/dnsforward/dnsforward.go +++ b/dnsforward/dnsforward.go @@ -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) }