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 | 6d4dea87b271b2b7aafddb96dd42c0dfcbf11b55 (patch) | |
tree | 7339ae41a692fc458c2e721d09c5e4bfd3e8cb4d /plugins | |
parent | 63782b344eebd404631aa507b8fbcabf6529867f (diff) | |
download | prosody-6d4dea87b271b2b7aafddb96dd42c0dfcbf11b55.tar.gz prosody-6d4dea87b271b2b7aafddb96dd42c0dfcbf11b55.zip |
mod_admin_telnet: Add flag for IPv6
Diffstat (limited to 'plugins')
-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 |