1
0
mirror of https://github.com/fumiama/WireGold.git synced 2026-06-26 22:00:27 +08:00

fix: mtu calculation

This commit is contained in:
源文雨
2023-08-05 10:55:40 +08:00
parent 3c5b4ad058
commit a3ae280a7f
3 changed files with 22 additions and 24 deletions

View File

@@ -170,10 +170,6 @@ func (m *Me) sendAllSameDst(packet []byte) (n int) {
break
}
i += int(totl)
if i > int(m.mtu) {
logrus.Debugln("[me] wrap exceed mtu, break")
break
}
ptr = rem[i:]
logrus.Debugln("[me] wrap", totl, "bytes packet to send together")
}