diff --git a/README.md b/README.md index 8bd9ef6..3bfebba 100644 --- a/README.md +++ b/README.md @@ -241,7 +241,7 @@ The relay is needed to staple the parallel incoming and outgoing connections. By croc relay ``` -By default it uses TCP ports 9009-9013. Make sure to open those up. You can customise the ports (e.g. `croc relay --ports 1111,1112`), but you must have a minimum of **2** ports for the relay. The first port is for communication and the subsequent ports are used for the multiplexed data transfer. +By default it uses TCP ports 9009-9013. Make sure to open those up. You can customize the ports (e.g. `croc relay --ports 1111,1112`), but you must have a minimum of **2** ports for the relay. The first port is for communication and the subsequent ports are used for the multiplexed data transfer. You can send files using your relay by entering `--relay` to change the relay that you are using if you want to custom host your own. diff --git a/src/cli/cli.go b/src/cli/cli.go index 99e2371..eeff0f5 100644 --- a/src/cli/cli.go +++ b/src/cli/cli.go @@ -44,6 +44,7 @@ func Run() (err error) { app.UsageText = `Send a file: croc send file.txt + -git to respect your .gitignore Send multiple files: croc send file1.txt file2.txt file3.txt or @@ -72,6 +73,7 @@ func Run() (err error) { &cli.StringFlag{Name: "text", Aliases: []string{"t"}, Usage: "send some text"}, &cli.BoolFlag{Name: "no-local", Usage: "disable local relay when sending"}, &cli.BoolFlag{Name: "no-multi", Usage: "disable multiplexing"}, + &cli.BoolFlag{Name: "git", Usage: "enable .gitignore respect / don't send ignored files"}, &cli.StringFlag{Name: "ports", Value: "9009,9010,9011,9012,9013", Usage: "ports of the local relay (optional)"}, }, HelpName: "croc send", @@ -202,6 +204,7 @@ func send(c *cli.Context) (err error) { HashAlgorithm: c.String("hash"), ThrottleUpload: c.String("throttleUpload"), ZipFolder: c.Bool("zip"), + GitIgnore: c.Bool("git"), } if crocOptions.TimeLimit <= 0 {