]> source.dussan.org Git - rspamd.git/commitdiff
Add dns_sockets option to configuration (16 is default setting).
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 20 Dec 2013 15:55:14 +0000 (15:55 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 20 Dec 2013 15:55:14 +0000 (15:55 +0000)
src/cfg_rcl.c

index 5860e13c7b4def260a1d3a1787490a3afd296f5d..e8cb668009851bd95588482a4bddb0f4b5a9b05a 100644 (file)
@@ -1033,6 +1033,8 @@ rspamd_rcl_config_init (void)
                        G_STRUCT_OFFSET (struct config_file, dns_timeout), RSPAMD_CL_FLAG_TIME_INTEGER);
        rspamd_rcl_add_default_handler (sub, "dns_retransmits", rspamd_rcl_parse_struct_integer,
                        G_STRUCT_OFFSET (struct config_file, dns_retransmits), RSPAMD_CL_FLAG_INT_32);
+       rspamd_rcl_add_default_handler (sub, "dns_sockets", rspamd_rcl_parse_struct_integer,
+                       G_STRUCT_OFFSET (struct config_file, dns_io_per_server), RSPAMD_CL_FLAG_INT_32);
        rspamd_rcl_add_default_handler (sub, "raw_mode", rspamd_rcl_parse_struct_boolean,
                        G_STRUCT_OFFSET (struct config_file, raw_mode), 0);
        rspamd_rcl_add_default_handler (sub, "one_shot", rspamd_rcl_parse_struct_boolean,