Software /
code /
prosody
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 |
parent | 6838:229e95aecf41 |
child | 6928:02717098cbba |
child | 6987: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