1
0
mirror of https://github.com/fumiama/WireGold.git synced 2026-06-21 11:02:42 +08:00

feat: drop json in packet

This commit is contained in:
fumiama
2021-12-30 15:19:37 +08:00
parent 4a17d7cf13
commit f91507fe6a
8 changed files with 78 additions and 26 deletions

View File

@@ -79,7 +79,7 @@ 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, dstport, packet))
lnk.Write(head.NewPacket(head.ProtoData, srcport, dst, dstport, packet))
}
}