mirror of
https://github.com/schollz/croc.git
synced 2025-10-11 05:11:06 +02:00
adding wait funtionality: if waiting, will send a different identification to the server
This commit is contained in:
parent
7ad54dced3
commit
eb3af56ccf
3 changed files with 22 additions and 1 deletions
2
main.go
2
main.go
|
@ -15,6 +15,7 @@ var oneGigabytePerSecond = 1000000 // expressed as kbps
|
|||
type Flags struct {
|
||||
Relay bool
|
||||
Debug bool
|
||||
Wait bool
|
||||
DontEncrypt bool
|
||||
Server string
|
||||
File string
|
||||
|
@ -37,6 +38,7 @@ croc version ` + version + `
|
|||
flags := new(Flags)
|
||||
flag.BoolVar(&flags.Relay, "relay", false, "run as relay")
|
||||
flag.BoolVar(&flags.Debug, "debug", false, "debug mode")
|
||||
flag.BoolVar(&flags.Wait, "wait", false, "wait for code to be sent")
|
||||
flag.StringVar(&flags.Server, "server", "cowyo.com", "address of relay server")
|
||||
flag.StringVar(&flags.File, "send", "", "file to send")
|
||||
flag.StringVar(&flags.Code, "code", "", "use your own code phrase")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue