Update middleware.go

This commit is contained in:
Jason
2019-08-19 16:27:41 +08:00
parent a34c193578
commit cbd7dcc6be
+1 -1
View File
@@ -49,7 +49,7 @@ func resolve(hosts *T.Trie, pool *F.Pool, backendDNS []string, r *D.Msg) (msg *D
}
q := r.Question[0]
if q.Qtype != D.TypeA || q.Qclass != D.ClassINET {
if q.Qtype != D.TypeA && q.Qtype != D.TypeAAAA {
return dnsExchange(backendDNS, r)
}