From 618ae1e5d0fff6b354d1ca73e1da1c8af49b877c Mon Sep 17 00:00:00 2001 From: a1lu Date: Sat, 30 Mar 2024 22:58:16 +0100 Subject: [PATCH] Support spaces in 4 word codes Since the code was extended by the 4 digit block, the patch from https://github.com/schollz/croc/pull/198 did not work anymore. --- src/cli/cli.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/cli/cli.go b/src/cli/cli.go index 23dea9b..9496b69 100644 --- a/src/cli/cli.go +++ b/src/cli/cli.go @@ -435,6 +435,8 @@ func receive(c *cli.Context) (err error) { case 1: crocOptions.SharedSecret = c.Args().First() case 3: + fallthrough + case 4: var phrase []string phrase = append(phrase, c.Args().First()) phrase = append(phrase, c.Args().Tail()...)