Diff

plugins/mod_admin_telnet.lua @ 4517:2e274e088ddc

mod_admin_telnet: Add flag for IPv6
author Kim Alvefur <zash@zash.se>
date Mon, 05 Mar 2012 22:11:29 +0100
parent 4516:24bb3994df7a
child 4684:dc70c4ffb66d
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