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

fix 分片

This commit is contained in:
fumiama
2021-12-31 01:08:44 +08:00
parent 53ea66fdb7
commit c6af6b239e

View File

@@ -58,7 +58,7 @@ func (nc *NIC) Start(m *link.Me) {
logrus.Infoln("[lower] recv write", n, "bytes packet to nic")
}
}()
buf := make([]byte, 32704) // 头部 52 + TEA 加密补足 16倍数
buf := make([]byte, 65536) // 永远不可能超界
for nc.hasstart { // 从 NIC 发送
packet := buf
n, err := nc.ifce.Read(packet)