mirror of
https://github.com/crowdsecurity/crowdsec.git
synced 2025-05-11 20:36:12 +02:00
add whitelisted flag in signal occurence (#114)
This commit is contained in:
parent
f6826c7e47
commit
eef1847873
3 changed files with 15 additions and 6 deletions
|
@ -202,6 +202,7 @@ func (n *Node) process(p *types.Event, ctx UnixParserCtx) (bool, error) {
|
|||
//Break this for now. Souldn't have been done this way, but that's not taht serious
|
||||
/*only display logs when we discard ban to avoid spam*/
|
||||
clog.Infof("Ban for %s whitelisted, reason [%s]", p.Overflow.Source.Ip.String(), n.Whitelist.Reason)
|
||||
p.Overflow.Whitelisted = true
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue