summaryrefslogtreecommitdiff
path: root/include
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
parent6399cd9327eac2776355644fe21acb02e52cf16c (diff)
Move <dns:timeout> out of the core.
Diffstat (limited to 'include')
-rw-r--r--include/configreader.h5
-rw-r--r--include/modules/dns.h2
2 files changed, 1 insertions, 6 deletions
diff --git a/include/configreader.h b/include/configreader.h
index 1eef60780..8da037e9a 100644
--- a/include/configreader.h
+++ b/include/configreader.h
@@ -336,11 +336,6 @@ class CoreExport ServerConfig
*/
bool RestrictBannedUsers;
- /** The number of seconds the DNS subsystem
- * will wait before timing out any request.
- */
- int dns_timeout;
-
/** The size of the read() buffer in the user
* handling code, used to read data into a user's
* recvQ.
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)