]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
tests/ja4: config message when ja4 auto enabled
authorJeff Lucovsky <jlucovsky@oisf.net>
Wed, 8 May 2024 14:08:13 +0000 (10:08 -0400)
committerJeff Lucovsky <jlucovsky@oisf.net>
Sat, 8 Jun 2024 13:36:46 +0000 (09:36 -0400)
Issue: 7010

This commit displays a config message when JA4 is enabled due to rule
usage.

src/detect-ja4-hash.c

index c029b6dab4a2d39e4b946ec84e35f8624f6f550a..2d3f908bf605ce986837912adea7bdc05dc41a49 100644 (file)
@@ -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;