Extended makeDNSReply to PTR replies too

This commit is contained in:
Michael Bridgen committed 2014-10-28 14:46:29 +00:00
1 parent 5bb6c85565
commit 126c36cffb
3 files changed
+37 -16

No files matched your search

+1 -1
View File
@@ -43,7 +43,7 @@ func (s *MDNSServer) Start(ifi *net.Interface) error {
q := r.Question[0]
ip, err := s.zone.MatchLocal(q.Name)
if err == nil {
m := makeDNSReply(r, q.Name, dns.TypeA, []net.IP{ip})
m := makeAReply(r, &q, []net.IP{ip})
s.SendResponse(m)
} else if s.addrIsLocal(w.RemoteAddr()) {
// ignore this - it's our own query received via multicast