Software /
code /
prosody
Changeset
6927:566e1cfcb814
mod_admin_telnet: c2s:show(): Add flag to indicate remote sessions
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sun, 22 Nov 2015 15:31:22 +0000 |
parents | 6926:d96b2aa7a11d |
children | 6928:02717098cbba 6933:d636815d81c3 |
files | plugins/mod_admin_telnet.lua |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_admin_telnet.lua Sun Nov 22 15:30:27 2015 +0000 +++ b/plugins/mod_admin_telnet.lua Sun Nov 22 15:31:22 2015 +0000 @@ -512,6 +512,9 @@ if session.ip and session.ip:match(":") then line[#line+1] = "(IPv6)"; end + if session.remote then + line[#line+1] = "(remote)"; + end return table.concat(line, " "); end