mirror of
https://github.com/schollz/croc.git
synced 2025-10-11 05:11:06 +02:00
add flag for skipping encryption
This commit is contained in:
parent
adb3f59a51
commit
86b12a3770
2 changed files with 27 additions and 19 deletions
3
main.go
3
main.go
|
@ -19,7 +19,7 @@ var server, file string
|
|||
|
||||
// Global varaibles
|
||||
var serverAddress, fileName, codePhraseFlag, connectionTypeFlag string
|
||||
var runAsRelay, debugFlag bool
|
||||
var runAsRelay, debugFlag, dontEncrypt bool
|
||||
var fileSalt, fileIV, fileHash string
|
||||
var fileBytes []byte
|
||||
|
||||
|
@ -29,6 +29,7 @@ func main() {
|
|||
flag.StringVar(&serverAddress, "server", "cowyo.com", "address of relay server")
|
||||
flag.StringVar(&fileName, "send", "", "file to send")
|
||||
flag.StringVar(&codePhraseFlag, "code", "", "use your own code phrase")
|
||||
flag.BoolVar(&dontEncrypt, "no-encrypt", false, "turn off encryption")
|
||||
flag.Parse()
|
||||
// Check build flags too, which take precedent
|
||||
if server != "" {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue