Software /
code /
prosody
Changeset
5662:685d46ec352b
mod_admin_telnet: Simplify IPv6 detection, fixes rare traceback
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 09 Jun 2013 12:59:23 +0200 |
parents | 5661:f226a0d23e85 |
children | 5664:4f499eb63c04 |
files | plugins/mod_admin_telnet.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_admin_telnet.lua Sun Jun 09 12:54:10 2013 +0200 +++ b/plugins/mod_admin_telnet.lua Sun Jun 09 12:59:23 2013 +0200 @@ -497,7 +497,7 @@ 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, " ");