mod_admin_telnet: c2s:show(): Add flag to indicate remote sessions
authorMatthew Wild <mwild1@gmail.com>
Sun, 22 Nov 2015 15:31:22 +0000
changeset 6930 566e1cfcb814
parent 6929 d96b2aa7a11d
child 6931 02717098cbba
child 6936 d636815d81c3
mod_admin_telnet: c2s:show(): Add flag to indicate remote sessions
plugins/mod_admin_telnet.lua
--- 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