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:
David Fifield
2020-04-29 12:56:41 -06:00
parent f6ca82d08c
commit 24d7fd82b2
+1 -1
View File
@@ -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 {