mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-10 11:09:04 -04:00
Fix IPv6 cloaking in compatability mode (was using the wrong xtab confusor)
This commit is contained in:
parent
4c350a2072
commit
1bfa48143c
@ -247,14 +247,14 @@ class ModuleCloaking : public Module
|
||||
item += *input;
|
||||
if (item.length() > 7)
|
||||
{
|
||||
hashies.push_back(Hash->sumIV(compatkey, xtab[(compatkey[1]+rounds) % 4], item).substr(0,8));
|
||||
hashies.push_back(Hash->sumIV(compatkey, xtab[(compatkey[0]+rounds) % 4], item).substr(0,8));
|
||||
item.clear();
|
||||
}
|
||||
rounds++;
|
||||
}
|
||||
if (!item.empty())
|
||||
{
|
||||
hashies.push_back(Hash->sumIV(compatkey, xtab[(compatkey[1]+rounds) % 4], item).substr(0,8));
|
||||
hashies.push_back(Hash->sumIV(compatkey, xtab[(compatkey[0]+rounds) % 4], item).substr(0,8));
|
||||
}
|
||||
/* Stick them all together */
|
||||
return irc::stringjoiner(":", hashies, 0, hashies.size() - 1).GetJoined();
|
||||
|
Loading…
x
Reference in New Issue
Block a user