Clean up the mdns_server tests so we can test PTR queries
This commit is contained in:
1 parent
dd6ca5ab92
commit
e9b84c968d
2 files changed
+47
-9
No files matched your search
@@ -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)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user