aboutsummaryrefslogtreecommitdiffstats
path: root/src/cfg_xml.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2011-03-23 17:08:58 +0300
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2011-03-23 17:08:58 +0300
commit689855e2bb5a1c911bab1f71da9aa963a8da62a2 (patch)
treebe0ceaeb9aa5107ef8807625a06a1ff400e54994 /src/cfg_xml.c
parent4aa3b704739e3398402fbbef1216ae588ff9be2e (diff)
downloadrspamd-689855e2bb5a1c911bab1f71da9aa963a8da62a2.tar.gz
rspamd-689855e2bb5a1c911bab1f71da9aa963a8da62a2.zip
* Add throttling detection mechanic for dns resolver
* Improve phishing module adding ability to define 'strict' phishing domains
Diffstat (limited to 'src/cfg_xml.c')
-rw-r--r--src/cfg_xml.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/cfg_xml.c b/src/cfg_xml.c
index 2bc83e109..43b2e0441 100644
--- a/src/cfg_xml.c
+++ b/src/cfg_xml.c
@@ -184,6 +184,18 @@ static struct xml_parser_rule grammar[] = {
G_STRUCT_OFFSET (struct config_file, dns_retransmits),
NULL
},
+ {
+ "dns_throttling_errors",
+ xml_handle_uint32,
+ G_STRUCT_OFFSET (struct config_file, dns_throttling_errors),
+ NULL
+ },
+ {
+ "dns_throttling_time",
+ xml_handle_seconds,
+ G_STRUCT_OFFSET (struct config_file, dns_throttling_time),
+ NULL
+ },
NULL_ATTR
},
NULL_DEF_ATTR