Software /
code /
prosody
Comparison
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 |
comparison
equal
deleted
inserted
replaced
6169:cb15eac75b50 | 6170:1dff425ffe84 |
---|---|
491 end | 491 end |
492 | 492 |
493 local function session_flags(session, line) | 493 local function session_flags(session, line) |
494 line = line or {}; | 494 line = line or {}; |
495 if session.cert_identity_status == "valid" then | 495 if session.cert_identity_status == "valid" then |
496 line[#line+1] = "(secure)"; | 496 line[#line+1] = "(authenticated)"; |
497 elseif session.secure then | 497 end |
498 if session.secure then | |
498 line[#line+1] = "(encrypted)"; | 499 line[#line+1] = "(encrypted)"; |
499 end | 500 end |
500 if session.compressed then | 501 if session.compressed then |
501 line[#line+1] = "(compressed)"; | 502 line[#line+1] = "(compressed)"; |
502 end | 503 end |