aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
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
commit9b41a236b0162a863c8417119795481814eb3c01 (patch)
tree7339ae41a692fc458c2e721d09c5e4bfd3e8cb4d /plugins
parent005ffd38a2a69887c0adf3d65590666d64976b87 (diff)
downloadprosody-9b41a236b0162a863c8417119795481814eb3c01.tar.gz
prosody-9b41a236b0162a863c8417119795481814eb3c01.zip
mod_admin_telnet: Add flag for IPv6
Diffstat (limited to 'plugins')
-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