projects
/
prosody.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
393df1e
)
mod_admin_telnet: c2s:show(): Add flag to indicate remote sessions
author
Matthew Wild
<mwild1@gmail.com>
Sun, 22 Nov 2015 15:31:22 +0000
(15:31 +0000)
committer
Matthew Wild
<mwild1@gmail.com>
Sun, 22 Nov 2015 15:31:22 +0000
(15:31 +0000)
plugins/mod_admin_telnet.lua
patch
|
blob
|
history
diff --git
a/plugins/mod_admin_telnet.lua
b/plugins/mod_admin_telnet.lua
index 6a5f87d41f49f6c18ac70498ed15172fef0e3c1f..16bc786dd36682d43314d39b8421f26db8b408cf 100644
(file)
--- a/
plugins/mod_admin_telnet.lua
+++ b/
plugins/mod_admin_telnet.lua
@@
-512,6
+512,9
@@
local function session_flags(session, line)
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