diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-01-27 12:13:10 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-01-27 12:18:41 +0000 |
commit | 49647df07c2dad4ae1560f9329cbbb0684c51127 (patch) | |
tree | 279da3790e519a8b248fb3121e0454327c07cc27 /src/libserver/cfg_file.h | |
parent | 29d5197458ea29a5bc75e171f007c4ab889f0299 (diff) | |
download | rspamd-49647df07c2dad4ae1560f9329cbbb0684c51127.tar.gz rspamd-49647df07c2dad4ae1560f9329cbbb0684c51127.zip |
[Minor] Save resolver in config structure and allow to get it from Lua
Diffstat (limited to 'src/libserver/cfg_file.h')
-rw-r--r-- | src/libserver/cfg_file.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libserver/cfg_file.h b/src/libserver/cfg_file.h index 89d13a1f2..5b0b87f8b 100644 --- a/src/libserver/cfg_file.h +++ b/src/libserver/cfg_file.h @@ -32,6 +32,7 @@ struct module_s; struct worker_s; struct rspamd_external_libs_ctx; struct rspamd_cryptobox_pubkey; +struct rspamd_dns_resolver; enum { VAL_UNDEF=0, VAL_TRUE, VAL_FALSE }; @@ -399,6 +400,7 @@ struct rspamd_config { gdouble upstream_error_time; /**< rate of upstream errors */ gdouble upstream_revive_time; /**< revive timeout for upstreams */ struct upstream_ctx *ups_ctx; /**< upstream context */ + struct rspamd_dns_resolver *dns_resolver; /**< dns resolver if loaded */ guint min_word_len; /**< minimum length of the word to be considered */ guint max_word_len; /**< maximum length of the word to be considered */ |