diff options
author | Matthew Wild <mwild1@gmail.com> | 2009-10-05 15:16:34 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2009-10-05 15:16:34 +0100 |
commit | 6fa482aafafe1eb58bcb5c520652e16938dcfd06 (patch) | |
tree | 146a7f24f260669e4be858b2b93c434e73836a13 /plugins/mod_console.lua | |
parent | 9ea966ae38876f404837f2944efd8085ba01ca9f (diff) | |
download | prosody-6fa482aafafe1eb58bcb5c520652e16938dcfd06.tar.gz prosody-6fa482aafafe1eb58bcb5c520652e16938dcfd06.zip |
mod_console: s2s:show(): Indicate when a connection is encrypted
Diffstat (limited to 'plugins/mod_console.lua')
-rw-r--r-- | plugins/mod_console.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/mod_console.lua b/plugins/mod_console.lua index 73a83f17..43cb8b13 100644 --- a/plugins/mod_console.lua +++ b/plugins/mod_console.lua @@ -467,7 +467,7 @@ function def_env.s2s:show(match_jid) for remotehost, session in pairs(host_session.s2sout) do if (not match_jid) or remotehost:match(match_jid) or host:match(match_jid) then count_out = count_out + 1; - print(" "..host.." -> "..remotehost); + print(" "..host.." -> "..remotehost..(session.secure and "(encrypted)" or "")); if session.sendq then print(" There are "..#session.sendq.." queued outgoing stanzas for this connection"); end @@ -500,7 +500,7 @@ function def_env.s2s:show(match_jid) if session.to_host == host and ((not match_jid) or host:match(match_jid) or (session.from_host and session.from_host:match(match_jid))) then count_in = count_in + 1; - print(" "..host.." <- "..(session.from_host or "(unknown)")); + print(" "..host.." <- "..(session.from_host or "(unknown)")..(session.secure and "(encrypted)" or "")); if session.type == "s2sin_unauthed" then print(" Connection not yet authenticated"); end |