summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorDaniel De Graaf <danieldg@inspircd.org>2010-04-24 17:28:48 -0500
committerDaniel De Graaf <danieldg@inspircd.org>2010-04-24 17:28:48 -0500
commitca215635bea432e83bb797e063da9b34103d29c6 (patch)
tree1249ced2680474a4627116f72c6657c32823aa64 /src/modules
parent534e3f7d675b6d7b286c779bf93a6f1a2b5e6129 (diff)
Emulate a bug in 1.2 to get matching cloaks
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/m_cloaking.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_cloaking.cpp b/src/modules/m_cloaking.cpp
index 1b46bb75e..70f335c1c 100644
--- a/src/modules/m_cloaking.cpp
+++ b/src/modules/m_cloaking.cpp
@@ -485,8 +485,8 @@ class ModuleCloaking : public Module
{
std::string tail = LastTwoDomainParts(host);
- /* Generate a cloak using specialized Hash */
- chost = prefix + "-" + Hash->sumIV(compatkey, xtab[(dest->host[0]) % 4], dest->host).substr(0,8) + tail;
+ // xtab is not used here due to a bug in 1.2 cloaking
+ chost = prefix + "-" + Hash->sumIV(compatkey, "0123456789abcdef", host).substr(0,8) + tail;
/* Fix by brain - if the cloaked host is > the max length of a host (64 bytes
* according to the DNS RFC) then they get cloaked as an IP.