1
0
mirror of https://github.com/fumiama/WireGold.git synced 2026-06-05 07:50:24 +08:00

add more logs

This commit is contained in:
fumiama
2021-12-30 16:11:30 +08:00
parent c3d05635f0
commit 66d5778df3
3 changed files with 23 additions and 8 deletions

View File

@@ -79,7 +79,10 @@ func (nc *NIC) Start(m *link.Me) {
logrus.Warnln("[lower] connect to peer", dst.String(), "err:", err)
continue
}
lnk.Write(head.NewPacket(head.ProtoData, srcport, dst, dstport, packet), false)
_, err = lnk.Write(head.NewPacket(head.ProtoData, srcport, dst, dstport, packet), false)
if err != nil {
logrus.Warnln("[lower] write to peer", dst.String(), "err:", err)
}
}
}