]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/coremods/core_dns.cpp
Clear the entire DNS cache on rehash.
[user/henk/code/inspircd.git] / src / coremods / core_dns.cpp
index 32613546597af81c9570dd13439b8ceab35f9a2e..11c2c823c890b785641c22459b7734ad21c94ff6 100644 (file)
@@ -708,8 +708,8 @@ class MyManager : public Manager, public Timer, public EventHandler
                        SocketEngine::Shutdown(this, 2);
                        SocketEngine::Close(this);
 
-                       /* Remove expired entries from the cache */
-                       this->Tick(ServerInstance->Time());
+                       // Remove all entries from the cache.
+                       cache.clear();
                }
 
                irc::sockets::aptosa(dnsserver, DNS::PORT, myserver);