allow disabling multiplexing

This commit is contained in:
Zack Scholl 2019-11-18 07:57:12 -08:00
parent 648c41d707
commit 3941762bf3
1 changed files with 11 additions and 9 deletions

View File

@ -51,6 +51,7 @@ func Run() (err error) {
Flags: []cli.Flag{
cli.StringFlag{Name: "code, c", Usage: "codephrase used to connect to relay"},
cli.BoolFlag{Name: "no-local", Usage: "disable local relay when sending"},
cli.BoolFlag{Name: "no-multi", Usage: "disable multiplexing"},
cli.StringFlag{Name: "ports", Value: "9009,9010,9011,9012,9013", Usage: "ports of the local relay (optional)"},
},
HelpName: "croc send",
@ -145,6 +146,7 @@ func send(c *cli.Context) (err error) {
DisableLocal: c.Bool("no-local"),
RelayPorts: strings.Split(c.String("ports"), ","),
Ask: c.GlobalBool("ask"),
NoMultiplexing: c.Bool("no-multi"),
}
b, errOpen := ioutil.ReadFile(getConfigFile())
if errOpen == nil && !c.GlobalBool("remember") {