From f0dae64b94bf33d484bca72576dad4f9e3a420e1 Mon Sep 17 00:00:00 2001 From: gVisor bot 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 84ff0bac..7abdd4d0 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) }