🐞 fix(is_only_monitor): 修复判断仅命中Monitor条件

This commit is contained in:
yangwei
2023-04-17 21:57:28 +08:00
parent caf1f6c64f
commit 4469473094

View File

@@ -349,7 +349,8 @@ static int is_only_monitor(struct maat_rule *result, int hit_cnt)
for(i=0; i<hit_cnt; i++)
{
if(result[i].action==TSG_ACTION_BYPASS || result[i].action==TSG_ACTION_INTERCEPT || result[i].action==TSG_ACTION_DENY)
//if(result[i].action==TSG_ACTION_BYPASS || result[i].action==TSG_ACTION_INTERCEPT || result[i].action==TSG_ACTION_DENY)
if(result[i].action>TSG_ACTION_MONITOR)
{
return 0;
}