summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-10-22 16:03:27 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-10-22 16:03:27 +0000
commit965ec4fac4040266c06205b8400f082730122318 (patch)
treee8a1234ceffc37f467a5b8a10598112cebe03205 /src
parent08b8c64bb6b6aa1d8cc5a7963c4ffa0a24e81960 (diff)
Respect the dns timeout value in the conf
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5523 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r--src/dns.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dns.cpp b/src/dns.cpp
index 5a79d0d2e..3836e6f65 100644
--- a/src/dns.cpp
+++ b/src/dns.cpp
@@ -114,7 +114,7 @@ class RequestTimeout : public InspTimer
int watchid;
requestlist &rl;
public:
- RequestTimeout(InspIRCd* SI, DNSRequest* watching, int id, requestlist &requests) : InspTimer(2, time(NULL)), ServerInstance(SI), watch(watching), watchid(id), rl(requests)
+ RequestTimeout(unsigned long n, InspIRCd* SI, DNSRequest* watching, int id, requestlist &requests) : InspTimer(n, time(NULL)), ServerInstance(SI), watch(watching), watchid(id), rl(requests)
{
ServerInstance->Log(DEBUG, "New DNS timeout set on %08x", watching);
}
@@ -148,7 +148,7 @@ DNSRequest::DNSRequest(InspIRCd* Instance, DNS* dns, insp_inaddr server, int id,
res = new unsigned char[512];
*res = 0;
memcpy(&myserver, &server, sizeof(insp_inaddr));
- RequestTimeout* RT = new RequestTimeout(Instance, this, id, requests);
+ RequestTimeout* RT = new RequestTimeout(Instance->Config->dns_timeout, Instance, this, id, requests);
Instance->Timers->AddTimer(RT); /* The timer manager frees this */
}