mirror of
https://github.com/crowdsecurity/crowdsec.git
synced 2025-05-11 12:25:53 +02:00
refact "cscli bouncers" (#2776)
This commit is contained in:
parent
3921c3f480
commit
4192af30d5
6 changed files with 201 additions and 187 deletions
|
@ -285,7 +285,7 @@ func (c *Config) LoadAPIServer(inCli bool) error {
|
|||
}
|
||||
}
|
||||
|
||||
if c.API.Server.OnlineClient == nil || c.API.Server.OnlineClient.Credentials == nil {
|
||||
if (c.API.Server.OnlineClient == nil || c.API.Server.OnlineClient.Credentials == nil) && !inCli {
|
||||
log.Printf("push and pull to Central API disabled")
|
||||
}
|
||||
|
||||
|
@ -297,7 +297,7 @@ func (c *Config) LoadAPIServer(inCli bool) error {
|
|||
return err
|
||||
}
|
||||
|
||||
if c.API.Server.CapiWhitelistsPath != "" {
|
||||
if c.API.Server.CapiWhitelistsPath != "" && !inCli {
|
||||
log.Infof("loaded capi whitelist from %s: %d IPs, %d CIDRs", c.API.Server.CapiWhitelistsPath, len(c.API.Server.CapiWhitelists.Ips), len(c.API.Server.CapiWhitelists.Cidrs))
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue