diff options
| author | liuxueli <[email protected]> | 2022-02-16 18:12:22 +0800 |
|---|---|---|
| committer | liuxueli <[email protected]> | 2022-02-16 18:12:22 +0800 |
| commit | f7cbaf52c805ad62cc2af2013ed198adc1d666bc (patch) | |
| tree | 0a1d474a5e599953b217daf3190102f4ee1eb088 | |
| parent | c0d8d5dd2e7d8cb4067b1111d9d8e6e58e70d7b2 (diff) | |
TSG-9596: 执行Deny Action时未执行DROP的动作导致未阻断成功v5.5.4
| -rw-r--r-- | src/tsg_action.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/tsg_action.cpp b/src/tsg_action.cpp index d5017fc..1a3ff3d 100644 --- a/src/tsg_action.cpp +++ b/src/tsg_action.cpp @@ -848,7 +848,12 @@ static unsigned char tsg_do_deny_action(const struct streaminfo *a_stream, struc break; } - local_state=0; + local_state=do_action_drop(a_stream, p_result, user_region, protocol, user_data); + if(protocol==PROTO_DNS && type==ACTION_RETURN_TYPE_APP) + { + local_state=set_drop_stream(a_stream, protocol); + } + if(user_region->deny->app_para.send_icmp_enable==1) { local_state|=send_icmp_unreachable(a_stream); |
