mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-10 02:59:01 -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::transform(host.begin(), host.end(), lowerhost.begin(), ::tolower);
|
||||||
|
|
||||||
std::string cloak;
|
std::string cloak;
|
||||||
cloak.append(prefix);
|
cloak.append(prefix).append(1, separator).append(Hash(lowerhost));
|
||||||
cloak.append(Hash(lowerhost));
|
|
||||||
|
|
||||||
const std::string visiblepart = Cloak::VisiblePart(host, hostparts, separator);
|
const std::string visiblepart = Cloak::VisiblePart(host, hostparts, separator);
|
||||||
if (!visiblepart.empty())
|
if (!visiblepart.empty())
|
||||||
{
|
cloak.append(1, separator).append(visiblepart);
|
||||||
cloak.push_back(separator);
|
|
||||||
cloak.append(visiblepart);
|
|
||||||
}
|
|
||||||
|
|
||||||
return cloak;
|
return cloak;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user