From d562aae15fde45a95743b69b1b0107d478c6b42e Mon Sep 17 00:00:00 2001 From: Wenbiao Zheng Date: Sun, 10 Nov 2019 20:27:31 +0800 Subject: [PATCH] Fix: respond if rejected, or the client hangs for the response (#184) --- core/inbound/server.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/inbound/server.go b/core/inbound/server.go index ad9a6d4..b06e2e5 100644 --- a/core/inbound/server.go +++ b/core/inbound/server.go @@ -128,6 +128,8 @@ func (s *Server) ServeDNS(w dns.ResponseWriter, q *dns.Msg) { for _, qt := range s.rejectQType { if isQuestionType(q, qt) { + log.Debugf("Reject %s: %s", inboundIP, q.Question[0].String()) + dns.HandleFailed(w, q) return } }