From 247fc2bfb63f346b2c5edac107fe3ba0b6da7851 Mon Sep 17 00:00:00 2001 From: Jeff Lucovsky Date: Wed, 8 May 2024 10:08:13 -0400 Subject: [PATCH] tests/ja4: config message when ja4 auto enabled Issue: 7010 This commit displays a config message when JA4 is enabled due to rule usage. --- src/detect-ja4-hash.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/detect-ja4-hash.c b/src/detect-ja4-hash.c index c029b6dab4..2d3f908bf6 100644 --- a/src/detect-ja4-hash.c +++ b/src/detect-ja4-hash.c @@ -122,6 +122,12 @@ static int DetectJa4HashSetup(DetectEngineCtx *de_ctx, Signature *s, const char SCLogError("JA4 support is not enabled"); } return -2; + } else { + static bool once = false; + if (!once) { + once = true; + SCLogConfig("enabling JA4 due to rule usage"); + } } s->init_data->init_flags |= SIG_FLAG_INIT_JA; -- 2.47.2