Fix: enable DNS server message compression (#1451)

This commit is contained in:
Indust 2021-06-24 13:38:44 +08:00 committed by GitHub
parent 244cb370a4
commit 3ca5d17c40
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -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)
}