From 932121c6ffa25e343b83210888469c5e3f2e12a8 Mon Sep 17 00:00:00 2001 From: Matt Schatz Date: Wed, 7 Aug 2019 22:51:26 -0600 Subject: Fix DNSBL lookups for IPv6. A '.' gets added to the end of `reversedip` when creating the DNSBL hostname for the resolver. We need to remove the trailing '.' on the IPv6 form of `reversedip` or the resolver will fail. --- src/modules/m_dnsbl.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/modules/m_dnsbl.cpp b/src/modules/m_dnsbl.cpp index 91777637c..9a9ad85a2 100644 --- a/src/modules/m_dnsbl.cpp +++ b/src/modules/m_dnsbl.cpp @@ -384,6 +384,7 @@ class ModuleDNSBL : public Module, public Stats::EventListener reversedip.push_back(*it); reversedip.push_back('.'); } + reversedip.erase(reversedip.length() - 1, 1); } else return; -- cgit v1.2.3