commit c539153: [Minor] Add some default options
Vsevolod Stakhov
vsevolod at highsecure.ru
Fri Oct 11 16:00:09 UTC 2019
Author: Vsevolod Stakhov
Date: 2019-10-11 16:50:10 +0100
URL: https://github.com/rspamd/rspamd/commit/c53915391243bae6b55a0c6f8acc78b3361f2fb0 (HEAD -> master)
[Minor] Add some default options
---
conf/options.inc | 5 +++++
src/libserver/cfg_rcl.c | 2 +-
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/conf/options.inc b/conf/options.inc
index 504e06a01..f600fdb9c 100644
--- a/conf/options.inc
+++ b/conf/options.inc
@@ -24,6 +24,11 @@ map_file_watch_multiplier = 0.1;
dynamic_conf = "$DBDIR/rspamd_dynamic";
history_file = "$DBDIR/rspamd.history";
check_all_filters = false;
+
+# Default settings
+dns_max_requests = 64;
+max_lua_urls = 1024;
+
dns {
timeout = 1s;
sockets = 16;
diff --git a/src/libserver/cfg_rcl.c b/src/libserver/cfg_rcl.c
index d409e40e8..5ef913f36 100644
--- a/src/libserver/cfg_rcl.c
+++ b/src/libserver/cfg_rcl.c
@@ -1845,7 +1845,7 @@ rspamd_rcl_config_init (struct rspamd_config *cfg, GHashTable *skip_sections)
rspamd_rcl_parse_struct_integer,
G_STRUCT_OFFSET (struct rspamd_config, dns_max_requests),
RSPAMD_CL_FLAG_INT_32,
- "Legacy option for DNS maximum requests per task count");
+ "Maximum DNS requests per task (default: 64)");
rspamd_rcl_add_default_handler (sub,
"classify_headers",
rspamd_rcl_parse_struct_string_list,
More information about the Commits
mailing list