diff options
Diffstat (limited to 'include/modules/dns.h')
-rw-r--r-- | include/modules/dns.h | 4 |
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) |