aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIvan Nardi <12729895+IvanNardi@users.noreply.github.com>2025-05-28 20:19:19 +0200
committerGitHub <noreply@github.com>2025-05-28 20:19:19 +0200
commit651daeb01a15c0880c34e7b482710e35b92d98e2 (patch)
tree39333aac238a9c293f618b0fe0e128ae172eb6ee /src
parent9e5a67f3690e7f5a5ca6bd796ea9eea6c167a6d5 (diff)
Fix configuration of ip lists of flow risks (#2859)
Add some new tests about these configuration parameters. Close #2858
Diffstat (limited to 'src')
-rw-r--r--src/lib/ndpi_main.c3
1 files changed, 2 insertions, 1 deletions
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 &&