1
0
mirror of https://github.com/fumiama/WireGold.git synced 2026-06-05 07:50:24 +08:00
This commit is contained in:
fumiama
2021-12-31 12:53:47 +08:00
parent dc450ba2e6
commit 63490cf160

View File

@@ -61,8 +61,8 @@ func (nc *NIC) Start(m *link.Me) {
buf := make([]byte, m.MTU()+64) // 增加报头长度与 TEA 冗余
off := 0
for nc.hasstart { // 从 NIC 发送
packet := buf[off:]
n, err := nc.ifce.Read(packet)
packet := buf
n, err := nc.ifce.Read(packet[off:])
if err != nil {
logrus.Errorln("[lower] send read from nic err:", err)
break