mirror of https://github.com/schollz/croc.git
working on ui
This commit is contained in:
parent
0b9eaa1e1e
commit
67f7a9b965
11
main.go
11
main.go
|
@ -41,14 +41,17 @@ func main() {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
connectionTypeFlag = "s" // sender
|
connectionTypeFlag = "s" // sender
|
||||||
if len(codePhraseFlag) == 0 {
|
|
||||||
codePhraseFlag = GetRandomName()
|
|
||||||
getInput("Your code phrase is '" + GetRandomName() + "' (press okay)")
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
connectionTypeFlag = "r" //receiver
|
connectionTypeFlag = "r" //receiver
|
||||||
|
}
|
||||||
|
|
||||||
|
if !runAsRelay {
|
||||||
if len(codePhraseFlag) == 0 {
|
if len(codePhraseFlag) == 0 {
|
||||||
codePhraseFlag = getInput("What is your code phrase? ")
|
codePhraseFlag = getInput("What is your code phrase? ")
|
||||||
|
if len(codePhraseFlag) < 5 {
|
||||||
|
codePhraseFlag = GetRandomName()
|
||||||
|
fmt.Println("Your code phrase is now " + codePhraseFlag)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue