mirror of
https://github.com/fumiama/WireGold.git
synced 2025-09-27 03:25:54 +08:00
fix: missing edits
This commit is contained in:
@@ -202,7 +202,7 @@ func (m *Me) dispatch(packet *orbyte.Item[head.Packet], addr p2p.EndPoint, index
|
||||
if config.ShowDebugLog {
|
||||
logrus.Debugln("[listen] @", index, "zstd decoded len:", w.Len())
|
||||
}
|
||||
pp.SetBody(w.TransBytes())
|
||||
pp.SetBody(w.TransBytes().Bytes())
|
||||
}
|
||||
if !pp.IsVaildHash() {
|
||||
if config.ShowDebugLog {
|
||||
|
@@ -104,7 +104,7 @@ func (l *Link) encrypt(p *head.Packet, sndcnt uint16, teatype uint8) {
|
||||
enc, _ := zstd.NewWriter(w, zstd.WithEncoderLevel(zstd.SpeedFastest))
|
||||
_, _ = io.Copy(enc, bytes.NewReader(data))
|
||||
enc.Close()
|
||||
data = w.TransBytes()
|
||||
data = w.TransBytes().Bytes()
|
||||
if config.ShowDebugLog {
|
||||
logrus.Debugln("[send] data len after zstd:", len(data))
|
||||
}
|
||||
|
Reference in New Issue
Block a user