diff options
| author | 2021-05-10 16:47:35 +0100 | |
|---|---|---|
| committer | 2021-05-10 20:40:21 +0100 | |
| commit | 23493b7d3d11e2e5def74694b9ed7454a623b302 (patch) | |
| tree | 990f21095e5d2ec739fa58e5bffadbbe9cf24054 /src/modules/m_dnsbl.cpp | |
| parent | Refactor the Base64 encoding and decoding functions. (diff) | |
Refactor the hex encoding function.
Diffstat (limited to 'src/modules/m_dnsbl.cpp')
| -rw-r--r-- | src/modules/m_dnsbl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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); |
