فهرست منبع

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).
David Fifield 6 سال پیش
والد
کامیت
24d7fd82b2
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      dnstt-server/main.go

+ 1 - 1
dnstt-server/main.go

@@ -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 {