Mercurial > prosody-hg
diff plugins/mod_admin_telnet.lua @ 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 | 229e95aecf41 |
| children | 02717098cbba 06696882d972 |
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
