mirror of
https://github.com/crowdsecurity/crowdsec.git
synced 2025-05-11 20:36:12 +02:00
deprecate capi_whitelists_path (#3504)
This commit is contained in:
parent
a432a6352d
commit
50a5ef5345
2 changed files with 6 additions and 0 deletions
|
@ -473,6 +473,8 @@ func (c *LocalApiServerCfg) LoadCapiWhitelists() error {
|
|||
return nil
|
||||
}
|
||||
|
||||
log.Warn("capi_whitelists_path is deprecated, please use centralized allowlists instead. See https://docs.crowdsec.net/docs/next/local_api/centralized_allowlists.")
|
||||
|
||||
fd, err := os.Open(c.CapiWhitelistsPath)
|
||||
if err != nil {
|
||||
return fmt.Errorf("while opening capi whitelist file: %w", err)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue