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:
parent
32c17f6b3e
commit
9decd6b803
@ -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)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user