Clean up the mdns_server tests so we can test PTR queries

This commit is contained in:
Michael Bridgen committed 2015-01-08 15:32:59 +00:00
1 parent dd6ca5ab92
commit e9b84c968d
2 files changed
+47 -9

No files matched your search

+1
View File
@@ -63,6 +63,7 @@ func (s *MDNSServer) Start(ifi *net.Interface) error {
q := &r.Question[0]
if q.Qtype == qtype {
if m := lookup(r, q); m != nil {
Debug.Printf("Found local answer to mDNS query %s", q.Name)
if err = s.sendResponse(m); err != nil {
Warning.Printf("Error writing to %s", w)
}