aboutsummaryrefslogtreecommitdiff
path: root/src/lib/protocols/http.c
diff options
context:
space:
mode:
authorIvan Nardi <12729895+IvanNardi@users.noreply.github.com>2024-09-03 12:35:45 +0200
committerGitHub <noreply@github.com>2024-09-03 12:35:45 +0200
commit338eedd05b034991f1960898ca7680e65d7901f6 (patch)
tree3f09e5d966c97382803c707abcf94f221e05aa24 /src/lib/protocols/http.c
parent2d040247a77c96a8411477e8ad38c0e07a5e1b54 (diff)
HTTP, QUIC, TLS: allow to disable sub-classification (#2533)
Diffstat (limited to 'src/lib/protocols/http.c')
-rw-r--r--src/lib/protocols/http.c5
1 files changed, 5 insertions, 0 deletions
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];