aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_s2s
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2012-05-10 23:05:03 +0200
committerKim Alvefur <zash@zash.se>2012-05-10 23:05:03 +0200
commitf0e489b59100e7894bada6a6d8ac8e69b3951aef (patch)
tree35d984966e297a23deafa00ce49a4eed56273849 /plugins/mod_s2s
parent20408ce29bdb837da90e95e293dfb372afdd1938 (diff)
downloadprosody-f0e489b59100e7894bada6a6d8ac8e69b3951aef.tar.gz
prosody-f0e489b59100e7894bada6a6d8ac8e69b3951aef.zip
s2smanager, mod_s2s: Move checking DNS timeout option to mod_s2s
Diffstat (limited to 'plugins/mod_s2s')
-rw-r--r--plugins/mod_s2s/s2sout.lib.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/mod_s2s/s2sout.lib.lua b/plugins/mod_s2s/s2sout.lib.lua
index f3496597..2ddc9299 100644
--- a/plugins/mod_s2s/s2sout.lib.lua
+++ b/plugins/mod_s2s/s2sout.lib.lua
@@ -26,6 +26,8 @@ local log = module._log;
local sources = {};
+local dns_timeout = module:get_option_number("dns_timeout", 15);
+dns.settimeout(dns_timeout);
local max_dns_depth = module:get_option_number("dns_max_depth", 3);
local s2sout = {};