Skip to content

Commit

Permalink
#236: Enable wire format compression to support Android 9 DoH
Browse files Browse the repository at this point in the history
  • Loading branch information
0xERR0R committed Jul 27, 2021
1 parent 59ec29b commit 301c8e4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions server/server_endpoints.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ func (s *Server) processDohMessage(rawMsg []byte, rw http.ResponseWriter, req *h

response := new(dns.Msg)
response.SetReply(msg)
// enable compression
resResponse.Res.Compress = true

b, err := resResponse.Res.Pack()
if err != nil {
Expand Down

0 comments on commit 301c8e4

Please sign in to comment.