mirror of
https://github.com/SagerNet/sing-box.git
synced 2025-06-13 21:54:13 +08:00
Update client_truncate.go
Signed-off-by: songee2020 <61627765+songee2020@users.noreply.github.com>
This commit is contained in:
parent
e26bc2b537
commit
1ebc413cd3
@ -14,6 +14,7 @@ func TruncateDNSMessage(request *dns.Msg, response *dns.Msg, headroom int) (*buf
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
responseLen := response.Len()
|
responseLen := response.Len()
|
||||||
|
response.Compress = true
|
||||||
if responseLen > maxLen {
|
if responseLen > maxLen {
|
||||||
copyResponse := *response
|
copyResponse := *response
|
||||||
response = ©Response
|
response = ©Response
|
||||||
|
Loading…
x
Reference in New Issue
Block a user