From 23493b7d3d11e2e5def74694b9ed7454a623b302 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Mon, 10 May 2021 16:47:35 +0100 Subject: Refactor the hex encoding function. --- src/modules/m_dnsbl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules/m_dnsbl.cpp') diff --git a/src/modules/m_dnsbl.cpp b/src/modules/m_dnsbl.cpp index 6a050f1af..5b77ac086 100644 --- a/src/modules/m_dnsbl.cpp +++ b/src/modules/m_dnsbl.cpp @@ -409,7 +409,7 @@ class ModuleDNSBL : public Module, public Stats::EventListener { const unsigned char* ip = user->client_sa.in6.sin6_addr.s6_addr; - const std::string buf = BinToHex(ip, 16); + const std::string buf = Hex::Encode(ip, 16); for (const auto& chr : insp::reverse_range(buf)) { reversedip.push_back(chr); -- cgit v1.3.1-10-gc9f91