TSG-2489 DOH 支持 IP 归属地
* tfe maat IP 归属地回调表的注册从 pangu 移动到 tfe_resource 中 * 修复 Pangu IP 归属地 SRC && DST 同时命中时 maat 计数的 bug
This commit is contained in:
@@ -418,6 +418,23 @@ int doh_send_log(struct doh_conf *handle, const struct tfe_http_session *http, c
|
||||
}
|
||||
}
|
||||
|
||||
if (ctx->location_client)
|
||||
{
|
||||
cJSON_AddStringToObject(common_obj, "common_client_location", ctx->location_client);
|
||||
}
|
||||
if (ctx->location_server)
|
||||
{
|
||||
cJSON_AddStringToObject(common_obj, "common_server_location", ctx->location_server);
|
||||
}
|
||||
if (ctx->asn_client)
|
||||
{
|
||||
cJSON_AddStringToObject(common_obj, "common_client_asn", ctx->asn_client);
|
||||
}
|
||||
if (ctx->asn_server)
|
||||
{
|
||||
cJSON_AddStringToObject(common_obj, "common_server_asn", ctx->asn_server);
|
||||
}
|
||||
|
||||
add_dns_info_to_log(common_obj, dns_info);
|
||||
for (size_t i = 0; i < result_num; i++)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user