diff options
| author | 刘学利 <[email protected]> | 2023-10-13 07:43:27 +0000 |
|---|---|---|
| committer | 刘学利 <[email protected]> | 2023-10-13 07:43:27 +0000 |
| commit | f7ab3c92aeb7d8cb9ac979db712d28090c11ba9a (patch) | |
| tree | 2f8cc1b5739179d2a2b775878c6cbbe27edffb20 /src/tsg_send_log.cpp | |
| parent | 34834d1a67be40f963ea7cc8881d97a13beb4fe3 (diff) | |
TSG-17290: 支持输出OS fingerprint日志字段(common_client_os_name,common_server_os_name)v6.1.13
Diffstat (limited to 'src/tsg_send_log.cpp')
| -rw-r--r-- | src/tsg_send_log.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/tsg_send_log.cpp b/src/tsg_send_log.cpp index 1a95fe0..c2a4f64 100644 --- a/src/tsg_send_log.cpp +++ b/src/tsg_send_log.cpp @@ -1727,6 +1727,16 @@ int set_session_attributes(struct tsg_log_instance_t *_instance, struct TLD_hand TLD_append(_handle, _instance->id2field[LOG_COMMON_TUNNELS_ENDPOINT_B_DESC].name, (void *)srt_attribute->server_endpoint->description, TLD_TYPE_STRING); } + if(srt_attribute->client_os!=NULL) + { + TLD_append(_handle, _instance->id2field[LOG_COMMON_CLIENT_OS_NAME].name, (void *)srt_attribute->client_os, TLD_TYPE_STRING); + } + + if(srt_attribute->server_os!=NULL) + { + TLD_append(_handle, _instance->id2field[LOG_COMMON_SERVER_OS_NAME].name, (void *)srt_attribute->server_os, TLD_TYPE_STRING); + } + return 1; } |
