Diff

plugins/mod_s2s/s2sout.lib.lua @ 4832:6b3aec1e0d9f

s2smanager, mod_s2s: Move checking DNS timeout option to mod_s2s
author Kim Alvefur <zash@zash.se>
date Thu, 10 May 2012 23:05:03 +0200
parent 4814:474684c07a3a
child 4906:89df1f03546a
line wrap: on
line diff
--- a/plugins/mod_s2s/s2sout.lib.lua	Thu May 10 23:01:10 2012 +0200
+++ b/plugins/mod_s2s/s2sout.lib.lua	Thu May 10 23:05:03 2012 +0200
@@ -26,6 +26,8 @@
 
 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 = {};