plugins/mod_admin_shell.lua
branch0.12
changeset 12792 3835c397b129
parent 12791 3735ad8d6f8e
child 12793 517b5702c5a1
child 12891 68df46926c26
equal deleted inserted replaced
12791:3735ad8d6f8e 12792:3835c397b129
   814 		title = "Encryption";
   814 		title = "Encryption";
   815 		description = "Encryption algorithm used (TLS cipher suite)";
   815 		description = "Encryption algorithm used (TLS cipher suite)";
   816 		width = 30;
   816 		width = 30;
   817 		key = "conn";
   817 		key = "conn";
   818 		mapper = function(conn)
   818 		mapper = function(conn)
   819 			local sock = conn:socket();
   819 			local sock = conn and conn:socket();
   820 			local info = sock and sock.info and sock:info();
   820 			local info = sock and sock.info and sock:info();
   821 			if info then return info.cipher end
   821 			if info then return info.cipher end
   822 		end;
   822 		end;
   823 	};
   823 	};
   824 	cert = {
   824 	cert = {