mirror of
https://github.com/tailscale/tailscale.git
synced 2024-11-29 04:55:31 +00:00
cmd/tsidp: add --dir flag
To better control where the tsnet state is being stored. Updates #10263 Signed-off-by: Maisem Ali <maisem@tailscale.com>
This commit is contained in:
parent
096b090caf
commit
fb0f8fc0ae
@ -64,6 +64,7 @@ type ctxConn struct{
|
||||
flagLocalPort = flag.Int("local-port", -1, "allow requests from localhost")
|
||||
flagUseLocalTailscaled = flag.Bool("use-local-tailscaled", false, "use local tailscaled instead of tsnet")
|
||||
flagFunnel = flag.Bool("funnel", false, "use Tailscale Funnel to make tsidp available on the public internet")
|
||||
flagDir = flag.String("dir", "", "tsnet state directory; a default one will be created if not provided")
|
||||
)
|
||||
|
||||
func main() {
|
||||
@ -120,6 +121,7 @@ func main() {
|
||||
} else {
|
||||
ts := &tsnet.Server{
|
||||
Hostname: "idp",
|
||||
Dir: *flagDir,
|
||||
}
|
||||
if *flagVerbose {
|
||||
ts.Logf = log.Printf
|
||||
|
Loading…
Reference in New Issue
Block a user