From fc3c650e8dc62c3fdde8e2cc4eda62ed4a37c532 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Wed, 31 Mar 2021 13:30:53 +0100 Subject: Add support for per-DNSBL timeouts. This should fix the issue of some DNSBLs being slower than others. --- include/modules/dns.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/modules/dns.h b/include/modules/dns.h index 5b1c426cd..bce842bd8 100644 --- a/include/modules/dns.h +++ b/include/modules/dns.h @@ -166,8 +166,8 @@ namespace DNS /* Creator of this request */ Module* const creator; - Request(Manager* mgr, Module* mod, const std::string& addr, QueryType qt, bool usecache = true) - : Timer(ServerInstance->Config->ConfValue("dns")->getDuration("timeout", 5, 1)) + Request(Manager* mgr, Module* mod, const std::string& addr, QueryType qt, bool usecache = true, unsigned int timeout = 0) + : Timer(timeout ? timeout : ServerInstance->Config->ConfValue("dns")->getDuration("timeout", 5, 1)) , manager(mgr) , question(addr, qt) , use_cache(usecache) -- cgit v1.2.3