summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorliuxueli <[email protected]>2022-03-03 09:48:11 +0800
committerliuxueli <[email protected]>2022-03-03 09:48:11 +0800
commit31d9a05c2dfa20875e77a11d3f23abbf434e0ae3 (patch)
tree0f9430d885fcddac29b51466e26ae4a1878a2da6
parenta98998993a0ff3ae5c37145dfbd0920f5154babc (diff)
TSG-9722: 为保证阻断效果,设置丢弃整个流v5.5.10
-rw-r--r--src/tsg_action.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tsg_action.cpp b/src/tsg_action.cpp
index 3617ce5..c300851 100644
--- a/src/tsg_action.cpp
+++ b/src/tsg_action.cpp
@@ -902,6 +902,7 @@ unsigned char tsg_deny_application(const struct streaminfo *a_stream, Maat_rule_
dict=(struct app_id_dict *)Maat_plugin_get_EX_data(g_tsg_maat_feather, g_tsg_para.table_id[TABLE_APP_ID_DICT], (const char *)app_id_buff);
if(dict==NULL)
{
+ set_drop_stream(a_stream, protocol);
return ((type==ACTION_RETURN_TYPE_PROT) ? PROT_STATE_DROPPKT|PROT_STATE_DROPME: APP_STATE_DROPME|APP_STATE_DROPPKT);
}
@@ -945,6 +946,7 @@ unsigned char tsg_deal_deny_action(const struct streaminfo *a_stream, Maat_rule_
user_region=(struct compile_user_region *)Maat_rule_get_ex_data(g_tsg_maat_feather, p_result, g_tsg_para.table_id[TABLE_SECURITY_COMPILE]);
if(user_region==NULL)
{
+ set_drop_stream(a_stream, protocol);
return ((type==ACTION_RETURN_TYPE_PROT) ? PROT_STATE_DROPPKT|PROT_STATE_DROPME: APP_STATE_DROPME|APP_STATE_DROPPKT);
}