summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorPercy Wegmann <percy@tailscale.com>2025-09-04 10:51:46 -0500
committerPercy Wegmann <percy@tailscale.com>2025-09-04 10:51:46 -0500
commitf0c1242e11018050fcb9062a5e6b4c7eba7fefa4 (patch)
tree58c9c8f58fde49653a85e6401991e57043f27644
parent624cdd2961ac88ac2c187072dc2cb322d05a653b (diff)
downloadtailscale-percy/oss14025-2.tar.xz
tailscale-percy/oss14025-2.zip
cmd/tailscaled: update comment on --statedir flag to no longer claim that it derives from --statepercy/oss14025-2
The documentation for `--statedir` said that when empty, it will be derived from `--state` when possible. It actually was not. The comment no longer makes this claim. Updates #14025 Signed-off-by: Percy Wegmann <percy@tailscale.com>
-rw-r--r--cmd/tailscaled/tailscaled.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/tailscaled/tailscaled.go b/cmd/tailscaled/tailscaled.go
index ddf6d9ef6..fac8a5c27 100644
--- a/cmd/tailscaled/tailscaled.go
+++ b/cmd/tailscaled/tailscaled.go
@@ -197,7 +197,7 @@ func main() {
flag.Var(flagtype.PortValue(&args.port, defaultPort()), "port", "UDP port to listen on for WireGuard and peer-to-peer traffic; 0 means automatically select")
flag.StringVar(&args.statepath, "state", "", "absolute path of state file; use 'kube:<secret-name>' to use Kubernetes secrets or 'arn:aws:ssm:...' to store in AWS SSM; use 'mem:' to not store state and register as an ephemeral node. If empty and --statedir is provided, the default is <statedir>/tailscaled.state. Default: "+paths.DefaultTailscaledStateFile())
flag.BoolVar(&args.encryptState, "encrypt-state", defaultEncryptState(), "encrypt the state file on disk; uses TPM on Linux and Windows, on all other platforms this flag is not supported")
- flag.StringVar(&args.statedir, "statedir", "", "path to directory for storage of config state, TLS certs, temporary incoming Taildrop files, etc. If empty, it's derived from --state when possible.")
+ flag.StringVar(&args.statedir, "statedir", "", "path to directory for storage of config state, TLS certs, temporary incoming Taildrop files, etc.")
flag.StringVar(&args.socketpath, "socket", paths.DefaultTailscaledSocket(), "path of the service unix socket")
flag.StringVar(&args.birdSocketPath, "bird-socket", "", "path of the bird unix socket")
flag.BoolVar(&printVersion, "version", false, "print version information and exit")