fix
This commit is contained in:
parent
68ccbd1f69
commit
74dd723ebf
|
@ -40,7 +40,7 @@ func initConfig() {
|
||||||
if err := csConfig.GetOPT(); err != nil {
|
if err := csConfig.GetOPT(); err != nil {
|
||||||
log.Fatalf(err.Error())
|
log.Fatalf(err.Error())
|
||||||
}
|
}
|
||||||
config.configFolder = filepath.Join(filepath.Clean(csConfig.csCliFolder))
|
config.configFolder = filepath.Join(filepath.Clean(csConfig.CsCliFolder))
|
||||||
|
|
||||||
if strings.HasPrefix(config.configFolder, "~/") {
|
if strings.HasPrefix(config.configFolder, "~/") {
|
||||||
usr, err := user.Current()
|
usr, err := user.Current()
|
||||||
|
|
|
@ -31,7 +31,7 @@ type CrowdSec struct {
|
||||||
Profiling bool `yaml:"profiling,omitempty"` //true -> enable runtime profiling
|
Profiling bool `yaml:"profiling,omitempty"` //true -> enable runtime profiling
|
||||||
SQLiteFile string `yaml:"sqlite_path,omitempty"` //path to sqlite output
|
SQLiteFile string `yaml:"sqlite_path,omitempty"` //path to sqlite output
|
||||||
APIMode bool `yaml:"apimode,omitempty"` //true -> enable api push
|
APIMode bool `yaml:"apimode,omitempty"` //true -> enable api push
|
||||||
csCliFolder string `yaml:"cscli_dir"` //cscli folder
|
CsCliFolder string `yaml:"cscli_dir"` //cscli folder
|
||||||
Linter bool
|
Linter bool
|
||||||
Prometheus bool
|
Prometheus bool
|
||||||
HTTPListen string `yaml:"http_listen,omitempty"`
|
HTTPListen string `yaml:"http_listen,omitempty"`
|
||||||
|
|
Loading…
Reference in a new issue