diff --git a/cmd/root.go b/cmd/root.go index 75df547..07dc1b6 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -21,6 +21,7 @@ func init() { flags := rootCmd.Flags() flags.StringVarP(&cfgFile, "config", "c", "", "config file path") flags.BoolP("tls", "t", false, "enable tls") + flags.Bool("auth", true, "enable auth") flags.String("cert", "cert.pem", "TLS certificate") flags.String("key", "key.pem", "TLS key") flags.StringP("address", "a", "0.0.0.0", "address to listen to")