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:
@@ -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")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user