diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-12-02 10:29:00 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-12-02 10:29:00 +0000 |
commit | c07db3cfd25e4432a8a4450b7cb1f7bd715ca8ab (patch) | |
tree | 8eea72b4be25a5a12b895b92c34f928adda650fd /src/inspircd.cpp | |
parent | eb74aa93eb2085416958c76b2b03ab71ca8931d0 (diff) |
Added forward lookup sanity checks to single threaded dns
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2111 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/inspircd.cpp')
-rw-r--r-- | src/inspircd.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/inspircd.cpp b/src/inspircd.cpp index 271332f70..0ab72bf21 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -1367,6 +1367,7 @@ void* dns_task(void* arg) { log(DEBUG,"DNS Step 5"); strcpy(u->host,host.c_str()); + strcpy(u->dhost,host.c_str()); } } } @@ -2447,7 +2448,9 @@ int InspIRCd(char** argv, int argc) OLDTIME = TIME; TIME = time(NULL); +#ifndef THREADED_DNS dns_poll(); +#endif unsigned int numsockets = module_sockets.size(); for (std::vector<InspSocket*>::iterator a = module_sockets.begin(); a < module_sockets.end(); a++) |