1
1
Fork 0
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:
Bradley T Lunsford 2017-10-20 14:51:30 -07:00
parent 7ad54dced3
commit eb3af56ccf
3 changed files with 22 additions and 1 deletions

View file

@ -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")