diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-10-22 16:03:46 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-10-22 16:03:46 +0000 |
commit | 493aa4cbde991a9d2d8732631fe2d81b56b86eb6 (patch) | |
tree | 47ae6594bb185b3ec62da5c4387069b7c1227b07 /src | |
parent | 965ec4fac4040266c06205b8400f082730122318 (diff) |
Default to 5 if none set
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5524 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r-- | src/dns.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dns.cpp b/src/dns.cpp index 3836e6f65..fb38a23b9 100644 --- a/src/dns.cpp +++ b/src/dns.cpp @@ -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->Config->dns_timeout, Instance, this, id, requests); + RequestTimeout* RT = new RequestTimeout(Instance->Config->dns_timeout ? Instance->Config->dns_timeout : 5, Instance, this, id, requests); Instance->Timers->AddTimer(RT); /* The timer manager frees this */ } |