1
0
mirror of https://github.com/fumiama/WireGold.git synced 2026-07-02 00:20:26 +08:00
This commit is contained in:
fumiama
2021-12-28 14:30:15 +08:00
parent 0efd89f7ef
commit a9abad93d3
3 changed files with 6 additions and 6 deletions

View File

@@ -72,7 +72,7 @@ func (l *Link) Write(p *head.Packet) (n int, err error) {
p.FillHash()
p.Data = l.Encode(p.Data)
var d []byte
d, err = p.Mashal(l.me.me.String(), l.peerip.String())
d, err = p.Marshal(l.me.me.String(), l.peerip.String())
logrus.Debugln("[link] write data", string(d))
if err == nil {
n, err = l.me.myconn.WriteToUDP(d, l.NextHop(l.peerip).endpoint)