add whitelisted flag in signal occurence (#114)

This commit is contained in:
AlteredCoder 2020-07-02 11:44:27 +02:00 committed by GitHub
parent f6826c7e47
commit eef1847873
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 15 additions and 6 deletions

View file

@ -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
}
}