From 81bc14f29b8d9a1d1856383c86cf7a9055b0c56a Mon Sep 17 00:00:00 2001 From: Zack Scholl Date: Thu, 11 Oct 2018 10:55:46 -0700 Subject: [PATCH] multiplex 8 tcp ports --- main.go | 4 ++-- src/croc/croc.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/main.go b/main.go index 362338deb..d96b6890c 100644 --- a/main.go +++ b/main.go @@ -64,7 +64,7 @@ func main() { app.Flags = []cli.Flag{ cli.StringFlag{Name: "addr", Value: "198.199.67.130", Usage: "address of the public relay"}, cli.StringFlag{Name: "addr-ws", Value: "8153", Usage: "port of the public relay websocket server to connect"}, - cli.StringFlag{Name: "addr-tcp", Value: "8154,8155,8156,8157", Usage: "tcp ports of the public relay serer to connect"}, + cli.StringFlag{Name: "addr-tcp", Value: "8154,8155,8156,8157,8158,8159,8160,8161", Usage: "tcp ports of the public relay server to connect"}, cli.BoolFlag{Name: "no-local", Usage: "disable local mode"}, cli.BoolFlag{Name: "local", Usage: "use only local mode"}, cli.BoolFlag{Name: "debug", Usage: "increase verbosity (a lot)"}, @@ -73,7 +73,7 @@ func main() { 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,8155,8156,8157", Usage: "ports that the tcp server listens on"}, + cli.StringFlag{Name: "tcp-port", Value: "8154,8155,8156,8157,8158,8159,8160,8161", Usage: "ports that the tcp server listens on"}, cli.StringFlag{Name: "curve", Value: "siec", Usage: "specify elliptic curve to use (p224, p256, p384, p521, siec)"}, } app.EnableBashCompletion = true diff --git a/src/croc/croc.go b/src/croc/croc.go index 72eda0f47..4bdace4ba 100644 --- a/src/croc/croc.go +++ b/src/croc/croc.go @@ -61,11 +61,11 @@ func Init(debug bool) (c *Croc) { c.UseEncryption = true c.AllowLocalDiscovery = true c.RelayWebsocketPort = "8153" - c.RelayTCPPorts = []string{"8154", "8155", "8156", "8157"} + c.RelayTCPPorts = []string{"8154", "8155", "8156", "8157", "8158", "8159", "8160", "8161"} c.CurveType = "siec" c.Address = "198.199.67.130" c.AddressWebsocketPort = "8153" - c.AddressTCPPorts = []string{"8154", "8155", "8156", "8157"} + c.AddressTCPPorts = []string{"8154", "8155", "8156", "8157", "8158", "8159", "8160", "8161"} c.NoRecipientPrompt = true debugLevel := "info" if debug {