diff options
author | Kim Alvefur <zash@zash.se> | 2012-03-05 22:11:29 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2012-03-05 22:11:29 +0100 |
commit | 9b41a236b0162a863c8417119795481814eb3c01 (patch) | |
tree | 7339ae41a692fc458c2e721d09c5e4bfd3e8cb4d /plugins/mod_admin_telnet.lua | |
parent | 005ffd38a2a69887c0adf3d65590666d64976b87 (diff) | |
download | prosody-9b41a236b0162a863c8417119795481814eb3c01.tar.gz prosody-9b41a236b0162a863c8417119795481814eb3c01.zip |
mod_admin_telnet: Add flag for IPv6
Diffstat (limited to 'plugins/mod_admin_telnet.lua')
-rw-r--r-- | plugins/mod_admin_telnet.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/mod_admin_telnet.lua b/plugins/mod_admin_telnet.lua index 9041552b..0dfdc827 100644 --- a/plugins/mod_admin_telnet.lua +++ b/plugins/mod_admin_telnet.lua @@ -499,6 +499,9 @@ local function session_flags(session, line) 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 |