diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-09-19 17:08:31 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-09-19 17:08:31 +0100 |
commit | c9ae6817d369d40d427b14a158b9f1a3d687d12d (patch) | |
tree | cc30a9d1fc5d2081cbad5b037755bb99b0cdf071 | |
parent | 84384ae4e65ff85b0feedd00ec27506dd5b9dbc7 (diff) | |
download | rspamd-c9ae6817d369d40d427b14a158b9f1a3d687d12d.tar.gz rspamd-c9ae6817d369d40d427b14a158b9f1a3d687d12d.zip |
[Minor] Fix default value for dns_timeout
-rw-r--r-- | src/libserver/cfg_utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |