Multipacket Known-Answer Suppression: Ignore some answers

We are setting Truncated bit to false when mDNS has a lot of queries as
Hashicorp fork does not handle the case when Truncated bit is set.
We are happy to do this for the time being until we fix the server later
on.
This commit is contained in:
Milos Gajdos 2019-06-04 18:09:26 +01:00
parent 32c17f6b3e
commit 9decd6b803
No known key found for this signature in database
GPG Key ID: 8B31058CC55DFD4F

View File

@ -182,6 +182,10 @@ func (s *Server) parsePacket(packet []byte, from net.Addr) error {
log.Printf("[ERR] mdns: Failed to unpack packet: %v", err)
return err
}
// TODO: This is a bit of a hack
// We decided to ignore some mDNS answers for the time being
// See: https://tools.ietf.org/html/rfc6762#section-7.2
msg.Truncated = false
return s.handleQuery(&msg, from)
}