diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-07-21 13:33:49 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-07-21 15:04:01 +0100 |
commit | d145c09388867031cff47e35bca74effd6c25fe8 (patch) | |
tree | 1a38ee94da419e2bed905b94fdeb98b170261932 /src/libserver/cfg_rcl.c | |
parent | 2b2c4414ae050ac7f3cfe67aa8b20061dd5bcd5c (diff) | |
download | rspamd-d145c09388867031cff47e35bca74effd6c25fe8.tar.gz rspamd-d145c09388867031cff47e35bca74effd6c25fe8.zip |
Add constraints to dns requests ammount per task.
Diffstat (limited to 'src/libserver/cfg_rcl.c')
-rw-r--r-- | src/libserver/cfg_rcl.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libserver/cfg_rcl.c b/src/libserver/cfg_rcl.c index 26b47442a..aba8b741b 100644 --- a/src/libserver/cfg_rcl.c +++ b/src/libserver/cfg_rcl.c @@ -1266,6 +1266,11 @@ rspamd_rcl_config_init (void) rspamd_rcl_parse_struct_integer, G_STRUCT_OFFSET (struct rspamd_config, dns_io_per_server), RSPAMD_CL_FLAG_INT_32); + rspamd_rcl_add_default_handler (sub, + "dns_max_requests", + rspamd_rcl_parse_struct_integer, + G_STRUCT_OFFSET (struct rspamd_config, dns_max_requests), + RSPAMD_CL_FLAG_INT_32); /* New DNS configuration */ ssub = rspamd_rcl_add_section (&sub->subsections, "dns", NULL, |