summaryrefslogtreecommitdiffstats
path: root/src/dns.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2011-04-06 19:26:25 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2011-04-06 19:26:25 +0400
commit1cb8543e85476db7e01f9a30cedc509d26b78b9b (patch)
tree2560d92a859b651089443dc71360a30811f61c2d /src/dns.h
parent87fd3373b9e8f0b3356ded2949e09b00b251599c (diff)
downloadrspamd-1cb8543e85476db7e01f9a30cedc509d26b78b9b.tar.gz
rspamd-1cb8543e85476db7e01f9a30cedc509d26b78b9b.zip
* Add ability to specify dns nameservers in a config
* Add ability to select between round-robin and master-slave algorithms for dns servers
Diffstat (limited to 'src/dns.h')
-rw-r--r--src/dns.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/dns.h b/src/dns.h
index 67cb50e9f..794714380 100644
--- a/src/dns.h
+++ b/src/dns.h
@@ -52,6 +52,7 @@ struct rspamd_dns_resolver {
guint max_errors;
memory_pool_t *static_pool; /**< permament pool (cfg_pool) */
gboolean throttling; /**< dns servers are busy */
+ gboolean is_master_slave; /**< if this is true, then select upstreams as master/slave */
guint errors; /**< resolver errors */
struct timeval throttling_time; /**< throttling time */
struct event throttling_event; /**< throttling event */