From 651daeb01a15c0880c34e7b482710e35b92d98e2 Mon Sep 17 00:00:00 2001 From: Ivan Nardi <12729895+IvanNardi@users.noreply.github.com> Date: Wed, 28 May 2025 20:19:19 +0200 Subject: Fix configuration of ip lists of flow risks (#2859) Add some new tests about these configuration parameters. Close #2858 --- src/lib/ndpi_main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/lib/ndpi_main.c') diff --git a/src/lib/ndpi_main.c b/src/lib/ndpi_main.c index ad23e8aa2..1adae4a3e 100644 --- a/src/lib/ndpi_main.c +++ b/src/lib/ndpi_main.c @@ -12154,7 +12154,8 @@ ndpi_cfg_error ndpi_set_config(struct ndpi_detection_module_struct *ndpi_str, (proto == NULL && c->proto == NULL && strncmp(c->param, "flow_risk.$FLOWRISK_NAME_OR_ID", 30) == 0 && strncmp(param, "flow_risk.", 10) == 0 && - !ndpi_str_endswith(param, ".info")) || + !ndpi_str_endswith(param, ".info") && + !ndpi_str_endswith(param, ".load")) || (proto == NULL && c->proto == NULL && strncmp(c->param, "flow_risk.$FLOWRISK_NAME_OR_ID.info", 35) == 0 && strncmp(param, "flow_risk.", 10) == 0 && -- cgit v1.2.3