mirror of
https://github.com/DNSCrypt/dnscrypt-proxy.git
synced 2025-04-05 22:27:37 +03:00
Compress responses
This commit is contained in:
parent
2d5dc5960a
commit
41e35bd8c5
1 changed files with 1 additions and 1 deletions
|
@ -272,7 +272,7 @@ func (pluginsState *PluginsState) ApplyResponsePlugins(pluginsGlobals *PluginsGl
|
|||
return packet, nil
|
||||
}
|
||||
pluginsState.action = PluginsActionForward
|
||||
msg := dns.Msg{}
|
||||
msg := dns.Msg{Compress: true}
|
||||
if err := msg.Unpack(packet); err != nil {
|
||||
if len(packet) >= MinDNSPacketSize && HasTCFlag(packet) {
|
||||
err = nil
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue