From 3ca5d17c40d3cc682e71f295f0761445cf7a4793 Mon Sep 17 00:00:00 2001 From: Indust Date: Thu, 24 Jun 2021 13:38:44 +0800 Subject: [PATCH] Fix: enable DNS server message compression (#1451) --- dns/server.go | 1 + 1 file changed, 1 insertion(+) diff --git a/dns/server.go b/dns/server.go index 84ff0bac47..7abdd4d0f7 100644 --- a/dns/server.go +++ b/dns/server.go @@ -30,6 +30,7 @@ func (s *Server) ServeDNS(w D.ResponseWriter, r *D.Msg) { D.HandleFailed(w, r) return } + msg.Compress = true w.WriteMsg(msg) }