From c9ae6817d369d40d427b14a158b9f1a3d687d12d Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 19 Sep 2019 17:08:31 +0100 Subject: [PATCH] [Minor] Fix default value for dns_timeout --- src/libserver/cfg_utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libserver/cfg_utils.c b/src/libserver/cfg_utils.c index 59783dd55..25015c269 100644 --- a/src/libserver/cfg_utils.c +++ b/src/libserver/cfg_utils.c @@ -128,7 +128,7 @@ rspamd_config_new (enum rspamd_config_init_flags flags) cfg = g_malloc0 (sizeof (*cfg)); /* Allocate larger pool for cfg */ cfg->cfg_pool = rspamd_mempool_new (8 * 1024 * 1024, "cfg"); - cfg->dns_timeout = 1000; + cfg->dns_timeout = 1.0; cfg->dns_retransmits = 5; /* 16 sockets per DNS server */ cfg->dns_io_per_server = 16; -- 2.39.5