1
0
mirror of https://github.com/schollz/croc.git synced 2024-11-23 23:54:17 +03:00

Update flags

This commit is contained in:
Zack Scholl 2017-10-17 19:22:51 -06:00
parent 497e1bc8ee
commit 3d3e8ca6b8

View File

@ -23,9 +23,9 @@ var runAsRelay, debugFlag bool
func main() {
flag.BoolVar(&runAsRelay, "relay", false, "run as relay")
flag.BoolVar(&debugFlag, "debug", false, "debug mode")
flag.StringVar(&serverAddress, "server", "cowyo.com", "(run as client) server address to connect to")
flag.StringVar(&serverAddress, "server", "cowyo.com", "address of relay server")
flag.StringVar(&fileName, "send", "", "file to send")
flag.StringVar(&codePhraseFlag, "code", "", "(run as server) file to serve")
flag.StringVar(&codePhraseFlag, "code", "", "use your own code phrase")
flag.Parse()
// Check build flags too, which take precedent
if server != "" {