|
@@ -127,6 +127,11 @@ var CommonFlags []cli.Flag = []cli.Flag{
|
|
Usage: "Automatically act as a relay if the node can accept inbound connections",
|
|
Usage: "Automatically act as a relay if the node can accept inbound connections",
|
|
EnvVar: "EDGEVPNAUTORELAY",
|
|
EnvVar: "EDGEVPNAUTORELAY",
|
|
},
|
|
},
|
|
|
|
+ &cli.BoolFlag{
|
|
|
|
+ Name: "autorelay-v1",
|
|
|
|
+ Usage: "Enable autorelay v1 circuits",
|
|
|
|
+ EnvVar: "EDGEVPNAUTORELAYV1",
|
|
|
|
+ },
|
|
&cli.IntFlag{
|
|
&cli.IntFlag{
|
|
Name: "concurrency",
|
|
Name: "concurrency",
|
|
Usage: "Number of concurrent requests to serve",
|
|
Usage: "Number of concurrent requests to serve",
|
|
@@ -354,6 +359,7 @@ func cliToOpts(c *cli.Context) ([]node.Option, []vpn.Option, *logger.Logger) {
|
|
},
|
|
},
|
|
Connection: config.Connection{
|
|
Connection: config.Connection{
|
|
AutoRelay: c.Bool("autorelay"),
|
|
AutoRelay: c.Bool("autorelay"),
|
|
|
|
+ RelayV1: c.Bool("autorelay-v1"),
|
|
MaxConnections: c.Int("max-connections"),
|
|
MaxConnections: c.Int("max-connections"),
|
|
MaxStreams: c.Int("max-streams"),
|
|
MaxStreams: c.Int("max-streams"),
|
|
HolePunch: c.Bool("holepunch"),
|
|
HolePunch: c.Bool("holepunch"),
|