1
0
mirror of https://github.com/fumiama/WireGold.git synced 2026-06-20 10:20:25 +08:00

feat(head): add more method to packet

This commit is contained in:
源文雨
2025-02-26 00:07:39 +09:00
parent fa7b9d4f0a
commit f0a853e449
7 changed files with 39 additions and 29 deletions

View File

@@ -96,7 +96,7 @@ func (l *Link) encrypt(p *head.Packet, sndcnt uint16, teatype uint8) {
if config.ShowDebugLog {
logrus.Debugln("[send] data len before encrypt:", p.BodyLen())
}
data := p.Body()
data := p.TransBody().Bytes()
if l.usezstd {
data = encodezstd(data).Trans().Bytes()
if config.ShowDebugLog {