cmd/tailscaled: don't require --state for --cleanup

pull/1194/head
Brad Fitzpatrick 4 years ago
parent daf2c70a08
commit eb47cba435

@ -103,10 +103,6 @@ func main() {
os.Exit(0)
}
if args.statepath == "" {
log.Fatalf("--state is required")
}
if args.socketpath == "" && runtime.GOOS != "windows" {
log.Fatalf("--socket is required")
}
@ -140,6 +136,10 @@ func run() error {
return nil
}
if args.statepath == "" {
log.Fatalf("--state is required")
}
var debugMux *http.ServeMux
if args.debug != "" {
debugMux = newDebugMux()

Loading…
Cancel
Save