# HG changeset patch # User Kim Alvefur # Date 1330981889 -3600 # Node ID 2e274e088ddcfa579c5b03c2c8ad2f9228f9aee6 # Parent 24bb3994df7acd704aa3db7075d044f49990b4ce mod_admin_telnet: Add flag for IPv6 diff -r 24bb3994df7a -r 2e274e088ddc plugins/mod_admin_telnet.lua --- a/plugins/mod_admin_telnet.lua Mon Mar 05 22:11:05 2012 +0100 +++ b/plugins/mod_admin_telnet.lua Mon Mar 05 22:11:29 2012 +0100 @@ -499,6 +499,9 @@ if session.smacks then line[#line+1] = "(sm)"; end + if session.conn and session.conn:ip():match(":") then + line[#line+1] = "(IPv6)"; + end return table.concat(line, " "); end