diff options
author | Kim Alvefur <zash@zash.se> | 2013-06-09 12:59:23 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2013-06-09 12:59:23 +0200 |
commit | bf631330f98adca03705f2f1eda337998338fc71 (patch) | |
tree | 1d210b590fff26bb1a31cf37fbdeb2786037e66b /plugins/mod_admin_telnet.lua | |
parent | 4a611afb8ab3071d35cd2bd567fe677cd6feafd9 (diff) | |
download | prosody-bf631330f98adca03705f2f1eda337998338fc71.tar.gz prosody-bf631330f98adca03705f2f1eda337998338fc71.zip |
mod_admin_telnet: Simplify IPv6 detection, fixes rare traceback
Diffstat (limited to 'plugins/mod_admin_telnet.lua')
-rw-r--r-- | plugins/mod_admin_telnet.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_admin_telnet.lua b/plugins/mod_admin_telnet.lua index ae8ca530..0fcb96b3 100644 --- a/plugins/mod_admin_telnet.lua +++ b/plugins/mod_admin_telnet.lua @@ -497,7 +497,7 @@ local function session_flags(session, line) if session.smacks then line[#line+1] = "(sm)"; end - if (session.ip or session.conn and session.conn:ip()):match(":") then + if session.ip and session.ip:match(":") then line[#line+1] = "(IPv6)"; end return table.concat(line, " "); |