aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/cfg_rcl.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2020-01-27 14:08:16 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2020-01-27 14:08:16 +0000
commitfab141472d7aa115b2fc603b9e6723e2dbebda7a (patch)
tree5b45cbffafcae96ccfe44a4c43b80811937cbe71 /src/libserver/cfg_rcl.c
parent92880f3694246c041d768811a98a4db3fdf7f00a (diff)
downloadrspamd-fab141472d7aa115b2fc603b9e6723e2dbebda7a.tar.gz
rspamd-fab141472d7aa115b2fc603b9e6723e2dbebda7a.zip
[Minor] Distinguish max_lua_urls and max_urls
Diffstat (limited to 'src/libserver/cfg_rcl.c')
-rw-r--r--src/libserver/cfg_rcl.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/libserver/cfg_rcl.c b/src/libserver/cfg_rcl.c
index 817f7efc5..ebca34563 100644
--- a/src/libserver/cfg_rcl.c
+++ b/src/libserver/cfg_rcl.c
@@ -2223,6 +2223,12 @@ rspamd_rcl_config_init (struct rspamd_config *cfg, GHashTable *skip_sections)
RSPAMD_CL_FLAG_INT_32,
"Maximum count of URLs to pass to Lua to avoid DoS (default: 1024)");
rspamd_rcl_add_default_handler (sub,
+ "max_urls",
+ rspamd_rcl_parse_struct_integer,
+ G_STRUCT_OFFSET (struct rspamd_config, max_urls),
+ RSPAMD_CL_FLAG_INT_32,
+ "Maximum count of URLs to process to avoid DoS (default: 10240)");
+ rspamd_rcl_add_default_handler (sub,
"max_blas_threads",
rspamd_rcl_parse_struct_integer,
G_STRUCT_OFFSET (struct rspamd_config, max_blas_threads),