aboutsummaryrefslogtreecommitdiff
path: root/example/ndpiReader.c
diff options
context:
space:
mode:
authorLuca Deri <deri@ntop.org>2025-06-08 07:33:19 +0200
committerLuca Deri <deri@ntop.org>2025-06-08 07:33:19 +0200
commit2a77c58ebefd60024e7731b3befb20714bc59314 (patch)
tree5775f7ea4b82817b23bd3847465fa2bf2116a6e3 /example/ndpiReader.c
parent6d0a891d1e9ee137d24263881530c5dcb9411709 (diff)
Improved HTTP risk report
PCRE2 is now enabled (if present) by default as necessary to report some HTTP risks
Diffstat (limited to 'example/ndpiReader.c')
-rw-r--r--example/ndpiReader.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/example/ndpiReader.c b/example/ndpiReader.c
index 0335d2eed..b03dd32c7 100644
--- a/example/ndpiReader.c
+++ b/example/ndpiReader.c
@@ -2136,14 +2136,8 @@ static void printFlow(u_int32_t id, struct ndpi_flow_info *flow, u_int16_t threa
if(flow->num_packets_before_monitoring > 0)
fprintf(out, "[RTP packets: %d/%d]", flow->stun.rtp_counters[0], flow->stun.rtp_counters[1]);
- if(flow->http.url[0] != '\0') {
- ndpi_risk_enum risk = ndpi_validate_url(flow->http.url);
-
- if(risk != NDPI_NO_RISK)
- NDPI_SET_BIT(flow->risk, risk);
-
- fprintf(out, "[URL: %s]", flow->http.url);
- }
+ if(flow->http.url[0] != '\0')
+ fprintf(out, "[URL: %s]", flow->http.url);
if(flow->http.response_status_code)
fprintf(out, "[StatusCode: %u]", flow->http.response_status_code);