# HG changeset patch # User Kim Alvefur # Date 1680865740 -7200 # Node ID d4f7118d15315933a38c1be4a3822b250c2dd752 # Parent 0f05804e974d5406d426f9e9b8e7171d90cf76de 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? diff -r 0f05804e974d -r d4f7118d1531 plugins/mod_admin_shell.lua --- a/plugins/mod_admin_shell.lua Fri Apr 07 13:07:00 2023 +0200 +++ b/plugins/mod_admin_shell.lua Fri Apr 07 13:09:00 2023 +0200 @@ -852,7 +852,7 @@ 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 = {