修复默认拦截策略不发送日志的bug,修复明文http协议被拦截后intercept state为0的bug。
This commit is contained in:
@@ -10,7 +10,7 @@ extern int g_iThreadNum;
|
||||
*/
|
||||
|
||||
enum kni_action g_maat_default_action;
|
||||
|
||||
int g_maat_default_log_option=1;
|
||||
struct kni_maat_handle{
|
||||
Maat_feather_t feather;
|
||||
int tableid_intercept_ip;
|
||||
@@ -45,6 +45,7 @@ void compile_ex_param_new(int idx, const struct Maat_rule_t* rule, const char* s
|
||||
g_maat_default_action = KNI_ACTION_BYPASS;
|
||||
KNI_LOG_INFO(logger, "Set default intercept action to bypass.");
|
||||
}
|
||||
g_maat_default_log_option=rule->do_log;
|
||||
}
|
||||
return;
|
||||
}
|
||||
@@ -242,6 +243,8 @@ enum kni_action intercept_policy_scan(struct kni_maat_handle* handle, struct ipa
|
||||
}
|
||||
else
|
||||
{
|
||||
*policy_id=0;
|
||||
*do_log=g_maat_default_log_option;
|
||||
return g_maat_default_action;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user