Software /
code /
prosody-modules
Comparison
mod_admin_web/admin_web/mod_admin_web.lua @ 1118:e5441d46d6ff
mod_admin_web: Remove unused local
author | Florian Zeitz <florob@babelmonkeys.de> |
---|---|
date | Mon, 22 Jul 2013 23:42:03 +0200 |
parent | 1117:d643c385d3f6 |
child | 1343:7dbde05b48a9 |
comparison
equal
deleted
inserted
replaced
1117:d643c385d3f6 | 1118:e5441d46d6ff |
---|---|
80 local sock = session.conn and session.conn.socket and session.conn:socket() | 80 local sock = session.conn and session.conn.socket and session.conn:socket() |
81 local info = sock and sock.info and sock:info(); | 81 local info = sock and sock.info and sock:info(); |
82 for k, v in pairs(info or {}) do | 82 for k, v in pairs(info or {}) do |
83 encrypted:tag("info", { name = k }):text(tostring(v)):up(); | 83 encrypted:tag("info", { name = k }):text(tostring(v)):up(); |
84 end | 84 end |
85 local sock = session.conn:socket() | |
86 | 85 |
87 if session.cert_identity_status == "valid" then | 86 if session.cert_identity_status == "valid" then |
88 encrypted:tag("valid"); | 87 encrypted:tag("valid"); |
89 else | 88 else |
90 encrypted:tag("invalid"); | 89 encrypted:tag("invalid"); |