summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-02-06 23:44:15 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-02-06 23:44:15 +0000
commit6c6348e3b9a0fae5388003324b4c2f99f8fb82ea (patch)
tree2dcb90b218ff31cccb2c3905eb197883d3f92e62 /src
parent3c45907c621f9f93d27c3ae7d2f26a9ba99b1c12 (diff)
Disabled ip->hostname cache, seems a bit fubar
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3114 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r--src/dnsqueue.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/dnsqueue.cpp b/src/dnsqueue.cpp
index 36128f985..7dcc78e83 100644
--- a/src/dnsqueue.cpp
+++ b/src/dnsqueue.cpp
@@ -131,12 +131,12 @@ public:
{
strlcpy(usr->host,hostname.c_str(),MAXBUF);
strlcpy(usr->dhost,hostname.c_str(),MAXBUF);
- address_cache::iterator address = addrcache.find(usr->ip4);
+ /*address_cache::iterator address = addrcache.find(usr->ip4);
if (address == addrcache.end())
{
log(DEBUG,"Caching hostname %s -> %s",(char*)inet_ntoa(usr->ip4),hostname.c_str());
addrcache[usr->ip4] = new std::string(hostname);
- }
+ }*/
WriteServ(usr->fd,"NOTICE Auth :*** Found your hostname");
}
usr->dns_done = true;
@@ -212,17 +212,16 @@ bool lookup_dns(std::string nick)
if (u)
{
/* Check the cache */
- address_cache::iterator address = addrcache.find(u->ip4);
+ /*address_cache::iterator address = addrcache.find(u->ip4);
if (address != addrcache.end())
{
- /* Theyre in the cache, dont waste a lookup */
WriteServ(u->fd,"NOTICE Auth :*** Found your hostname (cached)");
log(DEBUG,"Found cached host");
strlcpy(u->host,address->second->c_str(),MAXBUF);
strlcpy(u->dhost,address->second->c_str(),MAXBUF);
u->dns_done = true;
return true;
- }
+ }*/
/* If the user exists, create a new
* lookup object, and associate it
* with the user. The lookup object