]> git.r.bdr.sh - rbdr/mobius/blobdiff - hotline/file_transfer.go
Replace unsafe conn.Read with io.ReadFull
[rbdr/mobius] / hotline / file_transfer.go
index 65ef0b09e38ece13bc095e4eaade3a2ff9f0ddfd..9e86bb8724558164f948bc5a916f6c781cc4fb9c 100644 (file)
@@ -24,6 +24,7 @@ type FileTransfer struct {
        BytesSent       int
        clientID        uint16
        fileResumeData  *FileResumeData
+       options         []byte
 }
 
 func (ft *FileTransfer) String() string {
@@ -61,7 +62,6 @@ func readFolderUpload(buf []byte) folderUpload {
        return fu
 }
 
-
 func (fu *folderUpload) UnmarshalBinary(b []byte) error {
        fu.DataSize = [2]byte{b[0], b[1]}
        fu.IsFolder = [2]byte{b[2], b[3]}