mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-09 10:39:02 -04:00
Make it clear which is the current client fingerprint.
This commit is contained in:
parent
15e7db5a21
commit
41bc99c614
@ -370,8 +370,13 @@ public:
|
||||
{
|
||||
if (!cmd.operonlyfp || whois.IsSelfWhois() || whois.GetSource()->IsOper())
|
||||
{
|
||||
bool first = true;
|
||||
for (const auto& fingerprint : cert->GetFingerprints())
|
||||
whois.SendLine(RPL_WHOISCERTFP, INSP_FORMAT("has TLS client certificate fingerprint {}", fingerprint));
|
||||
{
|
||||
whois.SendLine(RPL_WHOISCERTFP, INSP_FORMAT("has {}client certificate fingerprint {}",
|
||||
first ? "" : "old ", fingerprint));
|
||||
first = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user