aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/surbl.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2014-10-29 14:10:57 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2014-10-29 14:10:57 +0000
commit809277294ff1f7e0887ece1c44735a203a5f5b96 (patch)
tree62792185af9f32c9aaa59a891052b88e4856f550 /src/plugins/surbl.h
parentf25e82d1f62c9fcb59e6519f1e4ebee3267591f0 (diff)
downloadrspamd-809277294ff1f7e0887ece1c44735a203a5f5b96.tar.gz
rspamd-809277294ff1f7e0887ece1c44735a203a5f5b96.zip
Fix surbl.
Diffstat (limited to 'src/plugins/surbl.h')
-rw-r--r--src/plugins/surbl.h12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/plugins/surbl.h b/src/plugins/surbl.h
index bde284cf2..a224e895a 100644
--- a/src/plugins/surbl.h
+++ b/src/plugins/surbl.h
@@ -16,13 +16,6 @@
#define SURBL_OPTION_NOIP 1
#define MAX_LEVELS 10
-struct redirector_upstream {
- struct upstream up;
- gchar *addr;
- guint16 port;
- gchar *name;
-};
-
struct surbl_ctx {
gint (*filter)(struct rspamd_task *task);
guint16 weight;
@@ -41,8 +34,7 @@ struct surbl_ctx {
rspamd_trie_t *redirector_trie;
GPtrArray *redirector_ptrs;
guint use_redirector;
- struct redirector_upstream *redirectors;
- guint32 redirectors_number;
+ struct upstream_list *redirectors;
rspamd_mempool_t *surbl_pool;
};
@@ -63,7 +55,7 @@ struct dns_param {
struct redirector_param {
struct uri *url;
struct rspamd_task *task;
- struct redirector_upstream *redirector;
+ struct upstream *redirector;
enum {
STATE_CONNECT,
STATE_READ