Software /
code /
prosody
Diff
plugins/mod_admin_telnet.lua @ 6170:1dff425ffe84
mod_admin_telnet: Split (secure) into (authenticated) + (secure)
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 11 May 2014 18:28:00 +0200 |
parent | 6169:cb15eac75b50 |
child | 6171:c69fca37f338 |
line wrap: on
line diff
--- a/plugins/mod_admin_telnet.lua Sun May 11 18:22:17 2014 +0200 +++ b/plugins/mod_admin_telnet.lua Sun May 11 18:28:00 2014 +0200 @@ -493,8 +493,9 @@ local function session_flags(session, line) line = line or {}; if session.cert_identity_status == "valid" then - line[#line+1] = "(secure)"; - elseif session.secure then + line[#line+1] = "(authenticated)"; + end + if session.secure then line[#line+1] = "(encrypted)"; end if session.compressed then