From 9f66842322e0d16d77bfc60835dfe7feceb92b17 Mon Sep 17 00:00:00 2001 From: Abhishek Date: Thu, 3 Feb 2022 23:09:37 +0530 Subject: [PATCH] fix sending file with prefix "croc-stdin" renaming on receiver end --- src/croc/croc.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/croc/croc.go b/src/croc/croc.go index bc534d6..428c37a 100644 --- a/src/croc/croc.go +++ b/src/croc/croc.go @@ -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