在处理pxy_ctrl_policy回调时,仅对manipulate和block动作解析json。
This commit is contained in:
@@ -472,6 +472,10 @@ void policy_action_param_new(int idx, const struct Maat_rule_t* rule, const char
|
||||
{
|
||||
return;
|
||||
}
|
||||
if((unsigned char)rule->action!=PG_ACTION_MANIPULATE&&(unsigned char)rule->action!=PG_ACTION_REJECT)
|
||||
{
|
||||
return;
|
||||
}
|
||||
int rule_id;
|
||||
cJSON *json=NULL, *rules=NULL, *item=NULL;
|
||||
json=cJSON_Parse(srv_def_large);
|
||||
|
||||
Reference in New Issue
Block a user