This commit is contained in:
Matthias Radestock committed 2014-11-28 16:27:11 +00:00
1 parent 7187d38047
commit 2680e594dd
5 files changed
+14 -14

No files matched your search

+1 -1
View File
@@ -53,7 +53,7 @@ func (s *MDNSServer) Start(ifi *net.Interface) error {
// Ignore answers to other questions
if len(r.Answer) == 0 && len(r.Question) > 0 {
q := r.Question[0]
if ip, err := s.zone.MatchLocal(q.Name); err == nil {
if ip, err := s.zone.LookupLocal(q.Name); err == nil {
m := makeAddressReply(r, &q, []net.IP{ip})
if err = s.sendResponse(m); err != nil {
Warning.Printf("Error writing to %s", w)