enable compression

This commit is contained in:
alexelisenko authored and Cuong Manh Le committed 2023-05-13 11:18:57 +07:00
1 parent 24e62e18fa
commit 0043fdf859
2 files changed
+7 -1

No files matched your search

+4
View File
@@ -236,6 +236,10 @@ func (p *prog) proxy(ctx context.Context, upstreams []string, failoverRcodes []i
ctrld.Log(ctx, mainLog.Debug(), "failover rcode matched, process to next upstream")
continue
}
// set compression, as it is not set by default when unpacking
answer.Compress = true
if p.cache != nil {
ttl := ttlFromMsg(answer)
now := time.Now()