This commit is contained in:
Asim 2016-04-29 23:55:12 +01:00
parent 3590a367d8
commit 7f3f4b65ae

View File

@ -4,7 +4,6 @@ import (
"fmt"
"log"
"net"
"strings"
"sync"
"github.com/miekg/dns"
@ -222,14 +221,6 @@ func (s *Server) handleQuery(query *dns.Msg, from net.Addr) error {
}
}
if len(multicastAnswer) == 0 && len(unicastAnswer) == 0 {
questions := make([]string, len(query.Question))
for i, q := range query.Question {
questions[i] = q.Name
}
log.Printf("no responses for query with questions: %s", strings.Join(questions, ", "))
}
if mresp := resp(false); mresp != nil {
if err := s.sendResponse(mresp, from, false); err != nil {
return fmt.Errorf("mdns: error sending multicast response: %v", err)