Skip to content

Commit a7f001d

Browse files
comzyhshawn1m
authored andcommitted
return error rather than do nothing when have no response (#138)
1 parent 21fe533 commit a7f001d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

core/inbound/server.go

+1
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ func (s *Server) ServeDNS(w dns.ResponseWriter, q *dns.Msg) {
134134
responseMessage := s.dispatcher.Exchange(q, inboundIP)
135135

136136
if responseMessage == nil {
137+
dns.HandleFailed(w, q)
137138
return
138139
}
139140

0 commit comments

Comments
 (0)