Comparison

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
comparison
equal deleted inserted replaced
6926:d96b2aa7a11d 6927:566e1cfcb814
510 line[#line+1] = "(sm)"; 510 line[#line+1] = "(sm)";
511 end 511 end
512 if session.ip and session.ip:match(":") then 512 if session.ip and session.ip:match(":") then
513 line[#line+1] = "(IPv6)"; 513 line[#line+1] = "(IPv6)";
514 end 514 end
515 if session.remote then
516 line[#line+1] = "(remote)";
517 end
515 return table.concat(line, " "); 518 return table.concat(line, " ");
516 end 519 end
517 520
518 local function tls_info(session, line) 521 local function tls_info(session, line)
519 line = line or {}; 522 line = line or {};