From 338eedd05b034991f1960898ca7680e65d7901f6 Mon Sep 17 00:00:00 2001 From: Ivan Nardi <12729895+IvanNardi@users.noreply.github.com> Date: Tue, 3 Sep 2024 12:35:45 +0200 Subject: HTTP, QUIC, TLS: allow to disable sub-classification (#2533) --- src/lib/protocols/http.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/lib/protocols/http.c') diff --git a/src/lib/protocols/http.c b/src/lib/protocols/http.c index bf365c46f..bf26467da 100644 --- a/src/lib/protocols/http.c +++ b/src/lib/protocols/http.c @@ -466,6 +466,11 @@ static void ndpi_http_parse_subprotocol(struct ndpi_detection_module_struct *ndp u_int16_t master_protocol; struct ndpi_packet_struct *packet = &ndpi_struct->packet; + if(!ndpi_struct->cfg.http_subclassification_enabled) { + NDPI_LOG_DBG2(ndpi_struct, "Skip sub-protocol check because subclassification is disabled\n"); + return; + } + master_protocol = NDPI_PROTOCOL_HTTP; if(flow->detected_protocol_stack[1] != NDPI_PROTOCOL_UNKNOWN) master_protocol = flow->detected_protocol_stack[1]; -- cgit v1.2.3