From 9decd6b8036580d2a44057ca293a945ecc0f57ec Mon Sep 17 00:00:00 2001 From: Milos Gajdos Date: Tue, 4 Jun 2019 18:09:26 +0100 Subject: [PATCH] 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. --- server.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/server.go b/server.go index 3c91586..1e9be9c 100644 --- a/server.go +++ b/server.go @@ -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) }