From 339826812bf8d0f8c979a66e971454d2eaf97cd7 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Wed, 1 Apr 2020 20:34:50 +0100 Subject: Clear the entire DNS cache on rehash. --- src/coremods/core_dns.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/coremods') diff --git a/src/coremods/core_dns.cpp b/src/coremods/core_dns.cpp index 326135465..11c2c823c 100644 --- a/src/coremods/core_dns.cpp +++ b/src/coremods/core_dns.cpp @@ -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); -- cgit v1.2.3