diff --git a/src/tsg_send_log.cpp b/src/tsg_send_log.cpp index 2a95733..9ab2cbf 100644 --- a/src/tsg_send_log.cpp +++ b/src/tsg_send_log.cpp @@ -2205,7 +2205,7 @@ int send_event_log(struct tsg_log_instance_t *_instance, struct TLD_handle_t *_h continue; } - if(a_stream!=NULL) + if(a_stream!=NULL && rules[i].service_id!=TSG_SERVICE_INTERCEPT) { tsg_set_policy_flow(a_stream, &(rules[i]), thread_id); } diff --git a/src/tsg_statistic.cpp b/src/tsg_statistic.cpp index f609527..c9147ad 100644 --- a/src/tsg_statistic.cpp +++ b/src/tsg_statistic.cpp @@ -48,7 +48,7 @@ int tsg_set_statistic_opt(int value, enum _STATISTIC_OPT_TYPE type, int thread_s int tsg_set_intercept_flow(struct maat_rule *p_result, struct _traffic_info *traffic_info, int thread_seq) { - if (p_result == NULL || traffic_info == NULL || thread_seq < 0 || thread_seq >= get_thread_count() || p_result->action != TSG_ACTION_INTERCEPT) + if (p_result == NULL || traffic_info == NULL || thread_seq < 0 || thread_seq >= get_thread_count() || p_result->service_id != TSG_SERVICE_INTERCEPT) { return -1; }