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