mirror of
https://github.com/schollz/croc.git
synced 2025-10-11 13:21:00 +02:00
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.
This commit is contained in:
parent
d2b7c80369
commit
618ae1e5d0
1 changed files with 2 additions and 0 deletions
|
@ -435,6 +435,8 @@ func receive(c *cli.Context) (err error) {
|
||||||
case 1:
|
case 1:
|
||||||
crocOptions.SharedSecret = c.Args().First()
|
crocOptions.SharedSecret = c.Args().First()
|
||||||
case 3:
|
case 3:
|
||||||
|
fallthrough
|
||||||
|
case 4:
|
||||||
var phrase []string
|
var phrase []string
|
||||||
phrase = append(phrase, c.Args().First())
|
phrase = append(phrase, c.Args().First())
|
||||||
phrase = append(phrase, c.Args().Tail()...)
|
phrase = append(phrase, c.Args().Tail()...)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue