summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2021-03-31 13:30:53 +0100
committerSadie Powell <sadie@witchery.services>2021-03-31 13:41:55 +0100
commitfc3c650e8dc62c3fdde8e2cc4eda62ed4a37c532 (patch)
tree394756c4b9ec46fd8cf99027c010c0e763017cf3 /include
parent952ee5cc603a5231348b8cfab18ee85a097f5394 (diff)
Add support for per-DNSBL timeouts.
This should fix the issue of some DNSBLs being slower than others.
Diffstat (limited to 'include')
-rw-r--r--include/modules/dns.h4
1 files changed, 2 insertions, 2 deletions
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)