mirror of
https://github.com/m13253/dns-over-https.git
synced 2026-11-15 15:28:10 +00:00
Use RCODE_REFUSED for unsupported Qclass
This commit is contained in:
1 parent
f8b40c4bfc
commit
502fe6b048
1 file changed
+1
-1
@@ -46,7 +46,7 @@ func (c *Client) generateRequestGoogle(w dns.ResponseWriter, r *dns.Msg, isTCP b
|
||||
questionClass := question.Qclass
|
||||
if questionClass != dns.ClassINET {
|
||||
reply := jsonDNS.PrepareReply(r)
|
||||
reply.Rcode = dns.RcodeFormatError
|
||||
reply.Rcode = dns.RcodeRefused
|
||||
w.WriteMsg(reply)
|
||||
return &DNSRequest{
|
||||
err: &dns.Error{},
|
||||
|
||||
Reference in new issue
Block a user