aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/cfg_rcl.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-02-27 13:19:03 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-02-27 13:19:03 +0000
commit65ae7ecb508095bbbcc2a3be464c4bc4fed3a9aa (patch)
treeff0673bebc5019ef8e74422aeefd2794b9e026de /src/libserver/cfg_rcl.c
parent5f45749d11981db96788bc496804eb29d61756fc (diff)
downloadrspamd-65ae7ecb508095bbbcc2a3be464c4bc4fed3a9aa.tar.gz
rspamd-65ae7ecb508095bbbcc2a3be464c4bc4fed3a9aa.zip
[Minor] Implement workaround for legacy clients
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 559d0ee03..83b3dcada 100644
--- a/src/libserver/cfg_rcl.c
+++ b/src/libserver/cfg_rcl.c
@@ -1669,6 +1669,12 @@ rspamd_rcl_config_init (struct rspamd_config *cfg)
G_STRUCT_OFFSET (struct rspamd_config, trusted_keys),
RSPAMD_CL_FLAG_STRING_LIST_HASH,
"List of trusted public keys used for signatures in base32 encoding");
+ rspamd_rcl_add_default_handler (sub,
+ "enable_shutdown_workaround",
+ rspamd_rcl_parse_struct_boolean,
+ G_STRUCT_OFFSET (struct rspamd_config, enable_shutdown_workaround),
+ 0,
+ "Enable workaround for legacy clients");
/* New DNS configuration */
ssub = rspamd_rcl_add_section_doc (&sub->subsections, "dns", NULL, NULL,
UCL_OBJECT, FALSE, TRUE,