Remove noise https://github.com/hashicorp/mdns/pull/34
This commit is contained in:
parent
3590a367d8
commit
7f3f4b65ae
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user