Software /
code /
prosody
Changeset
4517:2e274e088ddc
mod_admin_telnet: Add flag for IPv6
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 05 Mar 2012 22:11:29 +0100 |
parents | 4516:24bb3994df7a |
children | 4518:f2d695d2e31e 4526:cdab466551bd 4528:875b90d5ce0f |
files | plugins/mod_admin_telnet.lua |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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