Skip to content

Commit f9b25dc

Browse files
committed
eve/drop: always enable verdict in firewall mode
1 parent ff6fb06 commit f9b25dc

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/output-json-drop.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,8 +296,12 @@ static OutputInitResult JsonDropLogInitCtxSub(SCConfNode *conf, OutputCtx *paren
296296
"'flow' are 'start' and 'all'");
297297
}
298298
}
299+
299300
extended = SCConfNodeLookupChildValue(conf, "verdict");
300-
if (extended != NULL) {
301+
302+
if (EngineModeIsFirewall()) {
303+
drop_ctx->flags |= LOG_DROP_VERDICT;
304+
} else if (extended != NULL) {
301305
if (SCConfValIsTrue(extended)) {
302306
drop_ctx->flags |= LOG_DROP_VERDICT;
303307
}

0 commit comments

Comments
 (0)