summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorliuxueli <[email protected]>2023-09-20 17:10:36 +0800
committerliuxueli <[email protected]>2023-09-20 17:10:36 +0800
commitf6f2e28f7db006e4e1406e976236addb8471e679 (patch)
treef29088d644d347c009880de8c3b4282bfb029bac
parent1767320f77b7835723de59a6895e223a0baca522 (diff)
TSG-16493: 修正intercept策略发送日志逻辑,按照TCP链接发送日志
-rw-r--r--src/tsg_send_log.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tsg_send_log.cpp b/src/tsg_send_log.cpp
index 9ea0a41..bac824d 100644
--- a/src/tsg_send_log.cpp
+++ b/src/tsg_send_log.cpp
@@ -2349,14 +2349,14 @@ int tsg_send_log(struct tsg_log_instance_t *instance, struct TLD_handle_t *handl
send_event_log(_instance, _handle, a_stream, LOG_TYPE_INTERCEPT_EVENT, rules, n_rules, thread_id);
break;
case LOG_TYPE_SESSION_RECORD:
- case LOG_TYPE_TRANSACTION_RECORD:
- deal_event_rules(_instance, _handle, a_stream, LOG_TYPE_SECURITY_EVENT, TSG_SERVICE_SECURITY, &is_append_common_field, thread_id);
-
if(_instance->send_intercept_log==1)
{
deal_event_rules(_instance, _handle, a_stream, LOG_TYPE_INTERCEPT_EVENT, TSG_SERVICE_INTERCEPT, &is_append_common_field, thread_id);
}
// no break;
+ case LOG_TYPE_TRANSACTION_RECORD:
+ deal_event_rules(_instance, _handle, a_stream, LOG_TYPE_SECURITY_EVENT, TSG_SERVICE_SECURITY, &is_append_common_field, thread_id);
+ // no break;
case LOG_TYPE_INTERIM_SESSION_RECORD:
if(session_record_limit(_instance, a_stream, log_type))
{