aboutsummaryrefslogtreecommitdiffstats
path: root/src/upstream.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/upstream.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/upstream.h')
-rw-r--r--src/upstream.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/upstream.h b/src/upstream.h
index 501071a42..0836d2cfd 100644
--- a/src/upstream.h
+++ b/src/upstream.h
@@ -36,6 +36,10 @@ struct upstream* get_upstream_by_hash_ketama (void *ups, size_t members, size_t
time_t error_timeout, time_t revive_timeout, size_t max_errors,
gchar *key, size_t keylen);
+struct upstream* get_upstream_master_slave (void *ups, size_t members, size_t msize,
+ time_t now, time_t error_timeout,
+ time_t revive_timeout, size_t max_errors);
+
#endif /* UPSTREAM_H */
/*