summaryrefslogtreecommitdiff
path: root/plugin/business/doh/src
diff options
context:
space:
mode:
authorfengweihao <[email protected]>2024-02-06 18:04:42 +0800
committerfengweihao <[email protected]>2024-02-06 18:04:42 +0800
commitcf20f2d1f9d9d286f65b78c2ce30bd2cb811dd82 (patch)
tree661b304b7d69e82426126cc0a319aaa5c3cc262a /plugin/business/doh/src
parent2c32c20e234d9bce9748eee62d8da27c09bd324b (diff)
TSG-19337 Proxy的Manipulate日志中增加P Protocol字段
Diffstat (limited to 'plugin/business/doh/src')
-rw-r--r--plugin/business/doh/src/logger.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugin/business/doh/src/logger.cpp b/plugin/business/doh/src/logger.cpp
index 8381e26..8dad40c 100644
--- a/plugin/business/doh/src/logger.cpp
+++ b/plugin/business/doh/src/logger.cpp
@@ -398,6 +398,8 @@ int doh_send_log(struct doh_conf *handle, const struct tfe_http_session *http, c
tfe_stream_info_get(stream, INFO_FROM_DOWNSTREAM_RX_OFFSET, &c2s_byte_num, sizeof(c2s_byte_num));
tfe_stream_info_get(stream, INFO_FROM_UPSTREAM_RX_OFFSET, &s2c_byte_num, sizeof(s2c_byte_num));
+ cJSON_AddStringToObject(common_obj, "decoded_as", "HTTP");
+ cJSON_AddStringToObject(common_obj, "ip_protocol", "TCP");
cJSON_AddNumberToObject(common_obj, "out_link_id", 0);
cJSON_AddNumberToObject(common_obj, "in_link_id", 0);
cJSON_AddStringToObject(common_obj, "sled_ip", handle->kafka_logger->local_ip_str);