Revert "Update middleware.go"

This reverts commit cbd7dcc6be.
This commit is contained in:
Jason
2019-08-19 16:35:08 +08:00
parent 5802777034
commit 9c963750ef
+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.Qtype != D.TypeAAAA {
if q.Qtype != D.TypeA || q.Qclass != D.ClassINET {
return dnsExchange(backendDNS, r)
}