mod_admin_shell: Fix display of remote cert status when expired etc 0.12
authorKim Alvefur <zash@zash.se>
Thu, 06 Apr 2023 17:09:03 +0200
branch0.12
changeset 13081 de42a93a7c8d
parent 13061 20b1526772d2
child 13082 6da83deb8d7f
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
plugins/mod_admin_shell.lua
--- a/plugins/mod_admin_shell.lua	Fri Apr 07 15:54:59 2023 +0100
+++ b/plugins/mod_admin_shell.lua	Thu Apr 06 17:09:03 2023 +0200
@@ -829,7 +829,7 @@
 		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";