1
0
mirror of https://github.com/fumiama/WireGold.git synced 2026-06-04 23:40:26 +08:00
This commit is contained in:
fumiama
2022-01-01 18:02:31 +08:00
parent 03b4887e56
commit c27ac311a6

View File

@@ -162,9 +162,10 @@ func (m *Me) sendAllSameDst(packet []byte) (n int, rem []byte) {
}
n += pktl
rem = packet[n:]
logrus.Debugln("[me] skip to send", len(packet), "bytes ipv6 packet")
}
if len(rem) == 0 || !waterutil.IsIPv4(rem) {
logrus.Warnln("[me] skip to send", len(packet), "bytes non-ipv4/v6 packet")
logrus.Warnln("[me] skip to send", len(packet), "bytes full packet")
return len(packet), nil
}
}
@@ -176,6 +177,7 @@ func (m *Me) sendAllSameDst(packet []byte) (n int, rem []byte) {
}
n += int(totl)
rem = packet[n:]
logrus.Debugln("[me] wrap", totl, "bytes packet to send together")
}
if n == 0 {
return