mirror of
https://github.com/schollz/croc.git
synced 2025-10-11 05:11:06 +02:00
fix sending file with prefix "croc-stdin" renaming on receiver end
This commit is contained in:
parent
94c0f66a26
commit
9f66842322
1 changed files with 1 additions and 1 deletions
|
@ -841,7 +841,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…
Add table
Add a link
Reference in a new issue