summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2020-04-01 20:34:50 +0100
committerSadie Powell <sadie@witchery.services>2020-04-01 20:35:26 +0100
commit339826812bf8d0f8c979a66e971454d2eaf97cd7 (patch)
tree9d771a88a74354a9acfbf531acbd06e1d1c8c27b
parente19674d50ad3bf8f6881677e039aac56b62a6981 (diff)
Clear the entire DNS cache on rehash.
-rw-r--r--src/coremods/core_dns.cpp4
1 files changed, 2 insertions, 2 deletions
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);