mirror of https://github.com/schollz/croc.git
Merge pull request #456 from abhi12299/filenamePrefix
Fix renaming of file with prefix "croc-stdin" on receiver end
This commit is contained in:
commit
030ed2a03d
|
@ -891,7 +891,7 @@ func (c *Client) processMessageFileInfo(m message.Message) (done bool, err error
|
|||
if len(fi.Name) > c.longestFilename {
|
||||
c.longestFilename = len(fi.Name)
|
||||
}
|
||||
if strings.HasPrefix(fi.Name, "croc-stdin-") {
|
||||
if strings.HasPrefix(fi.Name, "croc-stdin-") && c.Options.SendingText {
|
||||
c.FilesToTransfer[i].Name, err = utils.RandomFileName()
|
||||
if err != nil {
|
||||
return
|
||||
|
|
Loading…
Reference in New Issue