diff --git a/cmd/croc/receive.go b/cmd/croc/receive.go index 487261f..965b327 100644 --- a/cmd/croc/receive.go +++ b/cmd/croc/receive.go @@ -46,9 +46,9 @@ var ReceiveCmd = &cobra.Command{ SharedSecret := args[0] - split := strings.Split(SharedSecret, "::") + split := strings.Split(SharedSecret, "-") - relayIndexString := split[1] + relayIndexString := split[4] relayIndex, err := strconv.Atoi(relayIndexString) diff --git a/cmd/croc/send.go b/cmd/croc/send.go index a33e436..cecee38 100644 --- a/cmd/croc/send.go +++ b/cmd/croc/send.go @@ -87,7 +87,7 @@ var SendCmd = &cobra.Command{ crocOptions.SharedSecret = utils.GetRandomName() } - crocOptions.SharedSecret = crocOptions.SharedSecret + "::" + strconv.Itoa(randomIndex) + crocOptions.SharedSecret = crocOptions.SharedSecret + "-" + strconv.Itoa(randomIndex) minimalFileInfos, emptyFoldersToTransfer, totalNumberFolders, err := GetFilesInfo(fnames, crocOptions.ZipFolder) if err != nil {