From 0d2db1f9f907616d4b83dccd34f95bf31c95ba0f Mon Sep 17 00:00:00 2001 From: Adam Date: Tue, 9 Nov 2010 14:59:35 -0500 Subject: Fixed DNS caching and made DNS cache empty results (cherry picked from commit 438ae629e51b519d0d5f70531d0262be1b9fe2bc) --- modules/extra/m_dnsbl.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'modules/extra') diff --git a/modules/extra/m_dnsbl.cpp b/modules/extra/m_dnsbl.cpp index f043cde1e..a9351d35e 100644 --- a/modules/extra/m_dnsbl.cpp +++ b/modules/extra/m_dnsbl.cpp @@ -146,11 +146,12 @@ class ModuleDNSBL : public Module try { Anope::string dnsbl_host = user_ip.addr() + "." + b.name; - new DNSBLResolver(this, u, b, dnsbl_host, this->add_to_akill); + DNSBLResolver *res = new DNSBLResolver(this, u, b, dnsbl_host, this->add_to_akill); + res->Process(); } catch (const SocketException &ex) { - Log() << "Resolver: " << ex.GetReason(); + Log() << "m_dnsbl: " << ex.GetReason(); } } -- cgit