adding basic peer tests

This commit is contained in:
ycc
2026-02-04 19:42:28 +01:00
parent b1ecd04a28
commit 4fe989b5ff
2 changed files with 503 additions and 1 deletions

View File

@@ -142,7 +142,7 @@ func (p *Peer) BuildSingleFileMessage(filename string, message []byte) ([]meowli
msg.From = p.MyIdentity.Public
file.Filename = fi.Name()
file.Chunk = uint32(chunk)
file.Data = b[:readTotal]
file.Data = append([]byte(nil), b[:readTotal]...)
file.Size = uint64(fi.Size())
msg.Files = append(msg.Files, &file)
msg.Type = "1"