From 5a541d7277d5f45ccfff2baae9ae3de29ee79c62 Mon Sep 17 00:00:00 2001 From: RCL98 <cristi98laurentiu@gmail.com> Date: Sat, 11 Nov 2023 23:47:24 +0200 Subject: [PATCH] more clean up --- README.md | 2 +- src/cli/cli.go | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 8bd9ef65b..3bfebba16 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 99e2371d4..878b1d1ca 100644 --- a/src/cli/cli.go +++ b/src/cli/cli.go @@ -72,6 +72,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 +203,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 {