X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fdnsqueue.cpp;h=ce0422fde4a6c707be4a3edb6925e0207966e1e0;hb=174169ac35321eedae9df6aabe7833b7df6b0279;hp=8c9dbbb757fc4e67a7545e7ff22de69c2aa47946;hpb=ccb1837a1481ed3d9048f2e4d0d5d6309f14d17d;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/dnsqueue.cpp b/src/dnsqueue.cpp index 8c9dbbb75..ce0422fde 100644 --- a/src/dnsqueue.cpp +++ b/src/dnsqueue.cpp @@ -5,8 +5,8 @@ * InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev. * E-mail: * - * - * + * + * * Written by Craig Edwards, Craig McLure, and others. * This program is free but copyrighted software; see * the file COPYING for details. @@ -71,14 +71,12 @@ public: if (usr) { resolver1.SetNS(std::string(Config->DNSServer)); + if (!resolver1.ReverseLookup(std::string(usr->host), true)) { return false; } strlcpy(u,nick.c_str(),NICKMAX-1); -#ifndef THREADED_DNS - usr->dns_fd = resolver1.GetFD(); -#endif /* ASSOCIATE WITH DNS LOOKUP LIST */ if (resolver1.GetFD() != -1) { @@ -124,9 +122,6 @@ public: WriteServ(usr->fd,"NOTICE Auth :*** Found your hostname"); } usr->dns_done = true; -#ifndef THREADED_DNS - usr->dns_fd = -1; -#endif return true; } } @@ -137,9 +132,6 @@ public: if (usr) { usr->dns_done = true; -#ifndef THREADED_DNS - usr->dns_fd = -1; -#endif } return true; } @@ -172,16 +164,11 @@ public: return true; } } - if ((hostname != "") && (usr)) + if (hostname != "") { resolver2.ForwardLookup(hostname, true); if (resolver2.GetFD() != -1) - { dnslist[resolver2.GetFD()] = this; -#ifndef THREADED_DNS - usr->dns_fd = resolver2.GetFD(); -#endif - } } } } @@ -283,4 +270,3 @@ void dns_poll(int fdcheck) if (ServerInstance && ServerInstance->SE) ServerInstance->SE->DelFd(fdcheck); } -