aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_admin_telnet.lua
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/mod_admin_telnet.lua')
-rw-r--r--plugins/mod_admin_telnet.lua2
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, " ");