Skip to content

Commit

Permalink
feat: use - instead of ::
Browse files Browse the repository at this point in the history
  • Loading branch information
zhl146 committed Jan 4, 2023
1 parent 710a883 commit e587638
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cmd/croc/receive.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion cmd/croc/send.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit e587638

Please sign in to comment.