1
0
mirror of https://github.com/fumiama/WireGold.git synced 2026-06-24 21:00:49 +08:00

feat(head): packet SetBody recv Bytes

This commit is contained in:
源文雨
2025-02-26 00:09:50 +09:00
parent f0a853e449
commit 689dfbc174
3 changed files with 37 additions and 37 deletions

View File

@@ -103,7 +103,7 @@ func (l *Link) encrypt(p *head.Packet, sndcnt uint16, teatype uint8) {
logrus.Debugln("[send] data len after zstd:", len(data))
}
}
p.SetBody(l.encode(teatype, sndcnt&0x07ff, data).Trans().Bytes())
p.SetBody(l.encode(teatype, sndcnt&0x07ff, data).Trans())
if config.ShowDebugLog {
logrus.Debugln("[send] data len after xchacha20:", p.BodyLen(), "addt:", sndcnt)
}