We don't care about these messages either

This commit is contained in:
Asim 2016-04-30 12:24:37 +01:00
parent 6304000b09
commit 2963a9d96a

View File

@ -348,12 +348,10 @@ func (c *client) recv(l *net.UDPConn, msgCh chan *dns.Msg) {
c.closeLock.Unlock() c.closeLock.Unlock()
n, err := l.Read(buf) n, err := l.Read(buf)
if err != nil { if err != nil {
log.Printf("[ERR] mdns: Failed to read packet: %v", err)
continue continue
} }
msg := new(dns.Msg) msg := new(dns.Msg)
if err := msg.Unpack(buf[:n]); err != nil { if err := msg.Unpack(buf[:n]); err != nil {
log.Printf("[ERR] mdns: Failed to unpack packet: %v", err)
continue continue
} }
select { select {