From f937942519d15530d2b5201e5460620bdb9a67dc Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Fri, 7 Apr 2023 13:09:00 +0200 Subject: mod_admin_shell: Make IP column thinner if IPv6 is disabled IPv6 addresses can be pretty long, so if they can be more compact, that's nice. But nobody would disable IPv6, would they? --- plugins/mod_admin_shell.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins') diff --git a/plugins/mod_admin_shell.lua b/plugins/mod_admin_shell.lua index 6309db64..be494d9f 100644 --- a/plugins/mod_admin_shell.lua +++ b/plugins/mod_admin_shell.lua @@ -852,7 +852,7 @@ available_columns = { ip = { title = "IP address"; description = "IP address the session connected from"; - width = #"ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff"; + width = module:get_option_boolean("use_ipv6", true) and #"ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff" or #"198.051.100.255"; key = "ip"; }; status = { -- cgit v1.2.3