mirror of
https://github.com/tladesignz/dnstt.git
synced 2026-10-04 12:58:09 +03:00
Use NXDOMAIN rather than FORMERR for QTYPE != TXT.
This commit is contained in:
@@ -297,7 +297,7 @@ func responseFor(query *dns.Message, domain dns.Name) (*dns.Message, turbotunnel
|
||||
|
||||
if question.Type != dns.RRTypeTXT {
|
||||
// We only support QTYPE == TXT.
|
||||
resp.Flags |= dns.RcodeNotImplemented
|
||||
resp.Flags |= dns.RcodeNameError
|
||||
return resp, clientID, nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user