We don't care about these messages either
This commit is contained in:
parent
6304000b09
commit
2963a9d96a
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user