1
0
mirror of https://github.com/fumiama/WireGold.git synced 2026-06-12 12:50:28 +08:00

fix: multi-segment hash checking

This commit is contained in:
源文雨
2025-04-03 00:00:21 +09:00
parent 6fc45333d8
commit 0c2f201bd0
15 changed files with 227 additions and 209 deletions

View File

@@ -163,9 +163,8 @@ func (s *Tunnel) handleRead() {
}
end := 64
endl := "..."
pp := &p.H
if pp.Size() < 64 {
end = pp.Size()
if p.D.Len() < 64 {
end = p.D.Len()
endl = "."
}
var recvseq uint32