diff options
author | Matt Schatz <genius3000@g3k.solutions> | 2019-08-07 22:51:26 -0600 |
---|---|---|
committer | P. Powell <petpow@saberuk.com> | 2019-08-08 11:59:33 +0100 |
commit | 932121c6ffa25e343b83210888469c5e3f2e12a8 (patch) | |
tree | fae2bdd3e9156a65cb2c538ade7629b2e2306760 /src/modules/m_dnsbl.cpp | |
parent | 714284aa306f2912eaca0c28d779d227db62a96b (diff) |
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.
Diffstat (limited to 'src/modules/m_dnsbl.cpp')
-rw-r--r-- | src/modules/m_dnsbl.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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; |