Software /
code /
prosody
Comparison
plugins/mod_admin_telnet.lua @ 7474:701989ab904f
mod_admin_telnet: remove unused import (util.serialization) [luacheck]
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Sat, 09 Jul 2016 00:57:17 +0800 |
parent | 7471:3631d259bb85 |
child | 7477:f9e470026042 |
child | 7722:82333dfdfaff |
comparison
equal
deleted
inserted
replaced
7473:a558fef9d018 | 7474:701989ab904f |
---|---|
730 ); | 730 ); |
731 end | 731 end |
732 end | 732 end |
733 | 733 |
734 function def_env.s2s:showcert(domain) | 734 function def_env.s2s:showcert(domain) |
735 local ser = require "util.serialization".serialize; | |
736 local print = self.session.print; | 735 local print = self.session.print; |
737 local s2s_sessions = module:shared"/*/s2s/sessions"; | 736 local s2s_sessions = module:shared"/*/s2s/sessions"; |
738 local domain_sessions = set.new(array.collect(values(s2s_sessions))) | 737 local domain_sessions = set.new(array.collect(values(s2s_sessions))) |
739 /function(session) return (session.to_host == domain or session.from_host == domain) and session or nil; end; | 738 /function(session) return (session.to_host == domain or session.from_host == domain) and session or nil; end; |
740 local cert_set = {}; | 739 local cert_set = {}; |