mirror of
https://github.com/bjc/prosody.git
synced 2025-04-04 05:37:39 +03:00
s2smanager, mod_s2s: Move checking DNS timeout option to mod_s2s
This commit is contained in:
parent
2cd39663b6
commit
3713488b27
2 changed files with 2 additions and 5 deletions
|
@ -17,12 +17,7 @@ local logger_init = require "util.logger".init;
|
|||
|
||||
local log = logger_init("s2smanager");
|
||||
|
||||
local adns, dns = require "net.adns", require "net.dns";
|
||||
local config = require "core.configmanager";
|
||||
local dns_timeout = config.get("*", "core", "dns_timeout") or 15;
|
||||
|
||||
--FIXME: s2sout should create its own resolver w/ timeout
|
||||
dns.settimeout(dns_timeout);
|
||||
|
||||
local prosody = _G.prosody;
|
||||
incoming_s2s = {};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue