From d0e75370b2d45d1c5feecc1e3d1febdd73a206cb Mon Sep 17 00:00:00 2001 From: Zack Scholl Date: Mon, 24 Sep 2018 10:01:30 -0700 Subject: [PATCH] allow force web --- main.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main.go b/main.go index d73009d..1188d9d 100644 --- a/main.go +++ b/main.go @@ -70,6 +70,7 @@ func main() { cli.BoolFlag{Name: "yes", Usage: "automatically agree to all prompts"}, cli.BoolFlag{Name: "stdout", Usage: "redirect file to stdout"}, cli.BoolFlag{Name: "force-tcp", Usage: "force TCP"}, + cli.BoolFlag{Name: "force-web", Usage: "force websockets"}, cli.StringFlag{Name: "port", Value: "8153", Usage: "port that the websocket listens on"}, cli.StringFlag{Name: "tcp-port", Value: "8154", Usage: "port that the tcp server listens on"}, cli.StringFlag{Name: "curve", Value: "siec", Usage: "specify elliptic curve to use (p224, p256, p384, p521, siec)"}, @@ -100,6 +101,9 @@ func main() { if c.GlobalBool("force-tcp") { cr.ForceSend = 2 } + if c.GlobalBool("force-web") { + cr.ForceSend = 1 + } return nil }