aboutsummaryrefslogtreecommitdiffstats
path: root/src/cfg_utils.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2010-07-01 17:54:25 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2010-07-01 17:54:25 +0400
commit9ac84380ce6d4ceb40bc0f4ca10c8c2ce8818790 (patch)
treecc5ff370a6a37532ddb17e5abef8eda56f4e431c /src/cfg_utils.c
parent83cc70ff18209116bd486b4932f206dd5a3fd83f (diff)
downloadrspamd-9ac84380ce6d4ceb40bc0f4ca10c8c2ce8818790.tar.gz
rspamd-9ac84380ce6d4ceb40bc0f4ca10c8c2ce8818790.zip
* Add resolv.conf parsing into dns.c
* Fix microseconds<->milliseconds conversions
Diffstat (limited to 'src/cfg_utils.c')
-rw-r--r--src/cfg_utils.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cfg_utils.c b/src/cfg_utils.c
index 26730305e..210bbb5f7 100644
--- a/src/cfg_utils.c
+++ b/src/cfg_utils.c
@@ -168,6 +168,9 @@ init_defaults (struct config_file *cfg)
cfg->memcached_maxerrors = DEFAULT_UPSTREAM_MAXERRORS;
cfg->memcached_protocol = TCP_TEXT;
+ cfg->dns_timeout = 1000;
+ cfg->dns_retransmits = 5;
+
cfg->max_statfile_size = DEFAULT_STATFILE_SIZE;
cfg->modules_opts = g_hash_table_new (g_str_hash, g_str_equal);