From 2a77c58ebefd60024e7731b3befb20714bc59314 Mon Sep 17 00:00:00 2001 From: Luca Deri Date: Sun, 8 Jun 2025 07:33:19 +0200 Subject: Improved HTTP risk report PCRE2 is now enabled (if present) by default as necessary to report some HTTP risks --- example/ndpiReader.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'example/ndpiReader.c') 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); -- cgit v1.2.3