mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-09 18:49:03 -04:00
Fix cloak_sha256 missing the separator after the prefix.
This commit is contained in:
parent
ab7a65f951
commit
e9a82a716d
@ -119,15 +119,11 @@ private:
|
||||
std::transform(host.begin(), host.end(), lowerhost.begin(), ::tolower);
|
||||
|
||||
std::string cloak;
|
||||
cloak.append(prefix);
|
||||
cloak.append(Hash(lowerhost));
|
||||
cloak.append(prefix).append(1, separator).append(Hash(lowerhost));
|
||||
|
||||
const std::string visiblepart = Cloak::VisiblePart(host, hostparts, separator);
|
||||
if (!visiblepart.empty())
|
||||
{
|
||||
cloak.push_back(separator);
|
||||
cloak.append(visiblepart);
|
||||
}
|
||||
cloak.append(1, separator).append(visiblepart);
|
||||
|
||||
return cloak;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user