mirror of
https://github.com/Control-D-Inc/ctrld.git
synced 2026-07-04 01:07:49 +02:00
enable compression
This commit is contained in:
committed by
Cuong Manh Le
parent
24e62e18fa
commit
0043fdf859
+3
-1
@@ -1,3 +1,5 @@
|
|||||||
|
|
||||||
dist/
|
dist/
|
||||||
gon.hcl
|
gon.hcl
|
||||||
|
|
||||||
|
/Build
|
||||||
|
.DS_Store
|
||||||
|
|||||||
@@ -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")
|
ctrld.Log(ctx, mainLog.Debug(), "failover rcode matched, process to next upstream")
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// set compression, as it is not set by default when unpacking
|
||||||
|
answer.Compress = true
|
||||||
|
|
||||||
if p.cache != nil {
|
if p.cache != nil {
|
||||||
ttl := ttlFromMsg(answer)
|
ttl := ttlFromMsg(answer)
|
||||||
now := time.Now()
|
now := time.Now()
|
||||||
|
|||||||
Reference in New Issue
Block a user