mirror of
https://github.com/tladesignz/dnstt.git
synced 2026-10-09 06:59:46 +03:00
Log "too short for ClientID" on when it's a non-error response.
The server would log "NXDOMAIN: 0 bytes are too short to contain a ClientID" even in the common cases where it got an A or NS query from the resolver (possibly from QNAME minimization).
This commit is contained in:
@@ -510,8 +510,8 @@ func recvLoop(domain dns.Name, dnsConn net.PacketConn, ttConn *turbotunnel.Queue
|
||||
// Payload is not long enough to contain a ClientID.
|
||||
if resp != nil && resp.Rcode() == dns.RcodeNoError {
|
||||
resp.Flags |= dns.RcodeNameError
|
||||
log.Printf("NXDOMAIN: %d bytes are too short to contain a ClientID", n)
|
||||
}
|
||||
log.Printf("NXDOMAIN: %d bytes are too short to contain a ClientID", n)
|
||||
}
|
||||
// If a response is called for, pass it to sendLoop via the channel.
|
||||
if resp != nil {
|
||||
|
||||
Reference in New Issue
Block a user