Skip to content

Commit

Permalink
Fix: respond if rejected, or the client hangs for the response (#184)
Browse files Browse the repository at this point in the history
  • Loading branch information
jsvisa authored and shawn1m committed Nov 10, 2019
1 parent e17a010 commit d562aae
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/inbound/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
Expand Down

0 comments on commit d562aae

Please sign in to comment.