Add max upstream connections flag to tunnel flags
This commit is contained in:
parent
c2f5102119
commit
f786e8b3fa
|
@ -1003,6 +1003,13 @@ func configureProxyDNSFlags(shouldHide bool) []cli.Flag {
|
||||||
EnvVars: []string{"TUNNEL_DNS_UPSTREAM"},
|
EnvVars: []string{"TUNNEL_DNS_UPSTREAM"},
|
||||||
Hidden: shouldHide,
|
Hidden: shouldHide,
|
||||||
}),
|
}),
|
||||||
|
altsrc.NewIntFlag(&cli.IntFlag{
|
||||||
|
Name: tunneldns.MaxUpstreamConnsFlag,
|
||||||
|
Usage: "Maximum concurrent connections to upstream. Setting to 0 means unlimited.",
|
||||||
|
Value: tunneldns.MaxUpstreamConnsDefault,
|
||||||
|
Hidden: shouldHide,
|
||||||
|
EnvVars: []string{"TUNNEL_DNS_MAX_UPSTREAM_CONNS"},
|
||||||
|
}),
|
||||||
altsrc.NewStringSliceFlag(&cli.StringSliceFlag{
|
altsrc.NewStringSliceFlag(&cli.StringSliceFlag{
|
||||||
Name: "proxy-dns-bootstrap",
|
Name: "proxy-dns-bootstrap",
|
||||||
Usage: "bootstrap endpoint URL, you can specify multiple endpoints for redundancy.",
|
Usage: "bootstrap endpoint URL, you can specify multiple endpoints for redundancy.",
|
||||||
|
|
Loading…
Reference in New Issue