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

fix out of bound

This commit is contained in:
fumiama
2022-01-01 17:53:25 +08:00
parent cdaacdcfed
commit 03b4887e56

View File

@@ -164,7 +164,7 @@ func (m *Me) sendAllSameDst(packet []byte) (n int, rem []byte) {
rem = packet[n:]
}
if len(rem) == 0 || !waterutil.IsIPv4(rem) {
logrus.Warnln("[me] skip to send", len(rem), "bytes non-ipv4/v6 packet")
logrus.Warnln("[me] skip to send", len(packet), "bytes non-ipv4/v6 packet")
return len(packet), nil
}
}