aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2012-03-05 22:11:29 +0100
committerKim Alvefur <zash@zash.se>2012-03-05 22:11:29 +0100
commit6d4dea87b271b2b7aafddb96dd42c0dfcbf11b55 (patch)
tree7339ae41a692fc458c2e721d09c5e4bfd3e8cb4d
parent63782b344eebd404631aa507b8fbcabf6529867f (diff)
downloadprosody-6d4dea87b271b2b7aafddb96dd42c0dfcbf11b55.tar.gz
prosody-6d4dea87b271b2b7aafddb96dd42c0dfcbf11b55.zip
mod_admin_telnet: Add flag for IPv6
-rw-r--r--plugins/mod_admin_telnet.lua3
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