diff options
| author | 2023-01-15 20:33:51 +0000 | |
|---|---|---|
| committer | 2023-01-15 20:33:51 +0000 | |
| commit | 7dbc0f8208614a1365b92500f21f55ea4c2b862c (patch) | |
| tree | 399366a16016825ec109dc23aee8f6a90af36d01 /src/modules/m_cloak_sha256.cpp | |
| parent | Allow cloak_sha256 to only cloak IP addresses and not hostnames. (diff) | |
Constify config fields in cloak_sha256.
Diffstat (limited to 'src/modules/m_cloak_sha256.cpp')
| -rw-r--r-- | src/modules/m_cloak_sha256.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/modules/m_cloak_sha256.cpp b/src/modules/m_cloak_sha256.cpp index 8fdb88e2a..65c210843 100644 --- a/src/modules/m_cloak_sha256.cpp +++ b/src/modules/m_cloak_sha256.cpp @@ -53,16 +53,16 @@ private: static constexpr size_t segmentlen = 8; // Whether to cloak the hostname if available. - bool cloakhost; + const bool cloakhost; // The number of parts of the hostname shown. - unsigned long hostparts; + const unsigned long hostparts; // The secret used for generating cloaks. - std::string key; + const std::string key; // The prefix for cloaks (e.g. MyNet). - std::string prefix; + const std::string prefix; #ifdef HAS_LIBPSL // Handle to the Public Suffix List library. @@ -76,7 +76,7 @@ private: const unsigned char* table; // The suffix for IP cloaks (e.g. IP). - std::string suffix; + const std::string suffix; std::string CloakAddress(const irc::sockets::sockaddrs& sa) { @@ -272,7 +272,7 @@ private: static constexpr size_t minkeylen = 30; // Whether to cloak the hostname if available. - bool cloakhost; + const bool cloakhost; public: SHA256Engine(Module* Creator, const std::string& Name, bool ch) |
