diff options
author | Sadie Powell <sadie@witchery.services> | 2020-04-01 20:34:50 +0100 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2020-04-01 20:35:26 +0100 |
commit | 339826812bf8d0f8c979a66e971454d2eaf97cd7 (patch) | |
tree | 9d771a88a74354a9acfbf531acbd06e1d1c8c27b /src | |
parent | e19674d50ad3bf8f6881677e039aac56b62a6981 (diff) |
Clear the entire DNS cache on rehash.
Diffstat (limited to 'src')
-rw-r--r-- | src/coremods/core_dns.cpp | 4 |
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); |