TSG-18165 Manipulation日志中 Subscriber ID值为空
This commit is contained in:
@@ -335,7 +335,8 @@ int doh_send_log(struct doh_conf *handle, const struct tfe_http_session *http, c
|
||||
cJSON_AddStringToObject(common_obj, "doh_version", app_proto[http->major_version]);
|
||||
cJSON_AddStringToObject(common_obj, "decoded_as", "DoH");
|
||||
|
||||
char opt_val[24] = { 0 };
|
||||
char opt_val[24]={0};
|
||||
char source_subscribe_id[64]={0};
|
||||
uint16_t opt_out_size;
|
||||
struct tfe_cmsg *cmsg = tfe_stream_get0_cmsg(stream);
|
||||
if (cmsg != NULL)
|
||||
@@ -345,6 +346,11 @@ int doh_send_log(struct doh_conf *handle, const struct tfe_http_session *http, c
|
||||
{
|
||||
cJSON_AddStringToObject(common_obj, "session_id", opt_val);
|
||||
}
|
||||
ret = tfe_cmsg_get_value(cmsg, TFE_CMSG_SRC_SUB_ID, (unsigned char *)source_subscribe_id, sizeof(source_subscribe_id), &opt_out_size);
|
||||
if (ret==0)
|
||||
{
|
||||
cJSON_AddStringToObject(common_obj, "subscriber_id", source_subscribe_id);
|
||||
}
|
||||
}
|
||||
|
||||
if (http->req)
|
||||
|
||||
Reference in New Issue
Block a user