cmd/tailscaled: don't require --state for --cleanup
parent
daf2c70a08
commit
eb47cba435
|
@ -103,10 +103,6 @@ func main() {
|
||||||
os.Exit(0)
|
os.Exit(0)
|
||||||
}
|
}
|
||||||
|
|
||||||
if args.statepath == "" {
|
|
||||||
log.Fatalf("--state is required")
|
|
||||||
}
|
|
||||||
|
|
||||||
if args.socketpath == "" && runtime.GOOS != "windows" {
|
if args.socketpath == "" && runtime.GOOS != "windows" {
|
||||||
log.Fatalf("--socket is required")
|
log.Fatalf("--socket is required")
|
||||||
}
|
}
|
||||||
|
@ -140,6 +136,10 @@ func run() error {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if args.statepath == "" {
|
||||||
|
log.Fatalf("--state is required")
|
||||||
|
}
|
||||||
|
|
||||||
var debugMux *http.ServeMux
|
var debugMux *http.ServeMux
|
||||||
if args.debug != "" {
|
if args.debug != "" {
|
||||||
debugMux = newDebugMux()
|
debugMux = newDebugMux()
|
||||||
|
|
Loading…
Reference in New Issue