瀏覽代碼

get rid of this

Thibault bui Koechlin 5 年之前
父節點
當前提交
7ab411f75f
共有 1 個文件被更改,包括 0 次插入5 次删除
  1. 0 5
      pkg/csconfig/config.go

+ 0 - 5
pkg/csconfig/config.go

@@ -36,7 +36,6 @@ type CrowdSec struct {
 	Linter          bool
 	Prometheus      bool
 	HTTPListen      string `yaml:"http_listen,omitempty"`
-	ValidatorMode   string /*if present points to a specific config (for tests)*/
 	RestoreMode     string
 	DumpBuckets     bool
 	OutputConfig    *outputs.OutputFactory `yaml:"plugin"`
@@ -97,7 +96,6 @@ func (c *CrowdSec) GetOPT() error {
 	daemonMode := flag.Bool("daemon", false, "Daemonize, go background, drop PID file, log to file")
 	testMode := flag.Bool("t", false, "only test configs")
 	prometheus := flag.Bool("prometheus-metrics", false, "expose http prometheus collector (see http_listen)")
-	validatorMode := flag.String("custom-config", "", "[dev] run a specific subset of configs parser:file.yaml,scenarios:file.yaml")
 	restoreMode := flag.String("restore-state", "", "[dev] restore buckets state from json file")
 	dumpMode := flag.Bool("dump-state", false, "[dev] Dump bucket state at the end of run.")
 
@@ -142,9 +140,6 @@ func (c *CrowdSec) GetOPT() error {
 	if *testMode {
 		c.Linter = true
 	}
-	if *validatorMode != "" {
-		c.ValidatorMode = *validatorMode
-	}
 	/*overriden by cmdline*/
 	if *daemonMode {
 		c.Daemonize = true