summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorliuxueli <[email protected]>2023-09-05 11:15:46 +0800
committerliuxueli <[email protected]>2023-09-05 11:15:46 +0800
commit018cd860052d4c9bfec5b738adfc400fbb533bbc (patch)
tree7bd5fd99f71195e062b93ee6213d756e47596917
parent8ca7bc0ff9c85fa828772a1d3bf0d0f2a8c231f1 (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 452fe0a..89d8f43 100644
--- a/src/tsg_send_log.cpp
+++ b/src/tsg_send_log.cpp
@@ -2451,14 +2451,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))
{