diff options
| author | salman <salman@tailscale.com> | 2023-01-13 14:22:02 +0000 |
|---|---|---|
| committer | salman <115096094+s-aia@users.noreply.github.com> | 2023-01-13 14:43:42 +0000 |
| commit | 8a1201ac428999529bd0356881f68a0207709a1e (patch) | |
| tree | 184a71411c743db163b2440f8d274e5b538fd5e2 /cmd | |
| parent | faf2d3043912a5758a31f41a06f2530d1269568e (diff) | |
| download | tailscale-8a1201ac428999529bd0356881f68a0207709a1e.tar.xz tailscale-8a1201ac428999529bd0356881f68a0207709a1e.zip | |
cmd/tailscale: correct order for -terminate-tls flag in serve tcp usage
The -terminate-tls flag is for the tcp subsubcommand, not the serve
subcommand like the usage example suggests.
Signed-off-by: salman <salman@tailscale.com>
Diffstat (limited to 'cmd')
| -rw-r--r-- | cmd/tailscale/cli/serve.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cmd/tailscale/cli/serve.go b/cmd/tailscale/cli/serve.go index dd5b8bc49..efae1d178 100644 --- a/cmd/tailscale/cli/serve.go +++ b/cmd/tailscale/cli/serve.go @@ -89,7 +89,7 @@ EXAMPLES " $ tailscale serve tcp 5432", "", " - Forward raw, TLS-terminated TCP packets to a local TCP server on port 5432:", - " $ tailscale serve --terminate-tls tcp 5432", + " $ tailscale serve tcp --terminate-tls 5432", }, "\n"), FlagSet: e.newFlags("serve-tcp", func(fs *flag.FlagSet) { fs.BoolVar(&e.terminateTLS, "terminate-tls", false, "terminate TLS before forwarding TCP connection") @@ -584,8 +584,8 @@ func elipticallyTruncate(s string, max int) string { // // Examples: // - tailscale serve tcp 5432 -// - tailscale --serve-port=8443 tcp 4430 -// - tailscale --serve-port=10000 --terminate-tls tcp 8080 +// - tailscale serve --serve-port=8443 tcp 4430 +// - tailscale serve --serve-port=10000 tcp --terminate-tls 8080 func (e *serveEnv) runServeTCP(ctx context.Context, args []string) error { if len(args) != 1 { fmt.Fprintf(os.Stderr, "error: invalid number of arguments\n\n") |
