mirror of
https://github.com/fumiama/WireGold.git
synced 2026-06-12 12:50:28 +08:00
fix of
This commit is contained in:
@@ -61,8 +61,8 @@ func (nc *NIC) Start(m *link.Me) {
|
|||||||
buf := make([]byte, m.MTU()+64) // 增加报头长度与 TEA 冗余
|
buf := make([]byte, m.MTU()+64) // 增加报头长度与 TEA 冗余
|
||||||
off := 0
|
off := 0
|
||||||
for nc.hasstart { // 从 NIC 发送
|
for nc.hasstart { // 从 NIC 发送
|
||||||
packet := buf[off:]
|
packet := buf
|
||||||
n, err := nc.ifce.Read(packet)
|
n, err := nc.ifce.Read(packet[off:])
|
||||||
if err != nil {
|
if err != nil {
|
||||||
logrus.Errorln("[lower] send read from nic err:", err)
|
logrus.Errorln("[lower] send read from nic err:", err)
|
||||||
break
|
break
|
||||||
|
|||||||
Reference in New Issue
Block a user