diff --git a/src/util-running-modes.c b/src/util-running-modes.c index 07aeffef5f..8ad5a1eea8 100644 --- a/src/util-running-modes.c +++ b/src/util-running-modes.c @@ -27,9 +27,13 @@ #include "app-layer-parser.h" #include "util-cuda.h" #include "util-unittest.h" +#include "util-debug.h" +#include "conf-yaml-loader.h" int ListKeywords(const char *keyword_info) { + if (ConfYamlLoadFile(DEFAULT_CONF_FILE) != -1) + SCLogLoadConfig(0, 0); MpmTableSetup(); AppLayerSetup(); SigTableSetup(); /* load the rule keywords */ @@ -39,6 +43,8 @@ int ListKeywords(const char *keyword_info) int ListAppLayerProtocols() { + if (ConfYamlLoadFile(DEFAULT_CONF_FILE) != -1) + SCLogLoadConfig(0, 0); MpmTableSetup(); AppLayerSetup(); AppLayerListSupportedProtocols();