mirror of
https://github.com/schollz/croc.git
synced 2025-10-11 13:21:00 +02:00
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
1 changed files with 1 additions and 1 deletions
|
@ -891,7 +891,7 @@ func (c *Client) processMessageFileInfo(m message.Message) (done bool, err error
|
||||||
if len(fi.Name) > c.longestFilename {
|
if len(fi.Name) > c.longestFilename {
|
||||||
c.longestFilename = len(fi.Name)
|
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()
|
c.FilesToTransfer[i].Name, err = utils.RandomFileName()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return
|
return
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue