summaryrefslogtreecommitdiff
path: root/include/modules/dns.h
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2017-09-03 19:08:52 +0100
committerPeter Powell <petpow@saberuk.com>2017-09-03 19:28:50 +0100
commit74dd288542e28f3604306cc69468f88b14c1b3c5 (patch)
tree9fddfe8ecafea785380efdc8398185c56e4fb4fb /include/modules/dns.h
parent6399cd9327eac2776355644fe21acb02e52cf16c (diff)
Move <dns:timeout> out of the core.
Diffstat (limited to 'include/modules/dns.h')
-rw-r--r--include/modules/dns.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/modules/dns.h b/include/modules/dns.h
index 61abd7144..f3bf45916 100644
--- a/include/modules/dns.h
+++ b/include/modules/dns.h
@@ -164,7 +164,7 @@ namespace DNS
Module* const creator;
Request(Manager* mgr, Module* mod, const std::string& addr, QueryType qt, bool usecache = true)
- : Timer((ServerInstance->Config->dns_timeout ? ServerInstance->Config->dns_timeout : 5))
+ : Timer(ServerInstance->Config->ConfValue("dns")->getDuration("timeout", 5, 1))
, manager(mgr)
, question(addr, qt)
, use_cache(usecache)