mod_admin_telnet: c2s:show(): Add flag to indicate remote sessions
authorMatthew Wild <mwild1@gmail.com>
Sun, 22 Nov 2015 15:31:22 +0000 (15:31 +0000)
committerMatthew Wild <mwild1@gmail.com>
Sun, 22 Nov 2015 15:31:22 +0000 (15:31 +0000)
plugins/mod_admin_telnet.lua

index 6a5f87d41f49f6c18ac70498ed15172fef0e3c1f..16bc786dd36682d43314d39b8421f26db8b408cf 100644 (file)
@@ -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