mod_admin_shell: Fix display of remote cert status when expired etc

Looks like autocomplete unhelpfully capitalized this word, but it's
lowercase where it is set in mod_s2s_auth_certs
This commit is contained in:
Kim Alvefur 2023-04-06 17:09:03 +02:00
parent 6d8647b333
commit 506ee45da2

View file

@ -829,7 +829,7 @@ available_columns = {
width = 11;
mapper = function(cert_status, session)
if cert_status then return capitalize(cert_status); end
if session.cert_chain_status == "Invalid" then
if session.cert_chain_status == "invalid" then
local cert_errors = set.new(session.cert_chain_errors[1]);
if cert_errors:contains("certificate has expired") then
return "Expired";