summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfengweihao <[email protected]>2024-03-14 16:32:09 +0800
committerfengweihao <[email protected]>2024-03-14 16:32:09 +0800
commitfc17f73bff62912ef7ce8b2ad9b9894922c7be2a (patch)
tree43e078413ba95d7c73ea71e421ebabc0b6f0331c
parenteed29299275578ca17b14a2ff5f29b01cec09643 (diff)
TSG-19907 Proxy日志中ASN字段填写错误,只需填写ASNUMERv4.8.70-20240315
-rw-r--r--common/src/tfe_scan.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/src/tfe_scan.cpp b/common/src/tfe_scan.cpp
index 1c43f93..ce9bdf7 100644
--- a/common/src/tfe_scan.cpp
+++ b/common/src/tfe_scan.cpp
@@ -222,7 +222,7 @@ int tfe_scan_ip_asn(const struct tfe_stream *stream, long long *result, struct m
hit_cnt_ip += n_hit_result;
}
memset(buff, 0, sizeof(buff));
- snprintf(buff, sizeof(buff), "%s(%s)", dst_asn, dst_org);
+ snprintf(buff, sizeof(buff), "%s", dst_asn);
*asn_server = tfe_strdup(buff);
}
if (strlen(src_asn))
@@ -248,7 +248,7 @@ int tfe_scan_ip_asn(const struct tfe_stream *stream, long long *result, struct m
hit_cnt_ip += n_hit_result;
}
memset(buff, 0, sizeof(buff));
- snprintf(buff, sizeof(buff), "%s(%s)", src_asn, src_org);
+ snprintf(buff, sizeof(buff), "%s", src_asn);
*asn_client = tfe_strdup(buff);
}
return hit_cnt_ip;