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()
n, err := l.Read(buf)
if err != nil {
log.Printf("[ERR] mdns: Failed to read packet: %v", err)
continue
}
msg := new(dns.Msg)
if err := msg.Unpack(buf[:n]); err != nil {
log.Printf("[ERR] mdns: Failed to unpack packet: %v", err)
continue
}
select {