diff options
author | Kim Alvefur <zash@zash.se> | 2023-04-07 13:09:00 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2023-04-07 13:09:00 +0200 |
commit | f937942519d15530d2b5201e5460620bdb9a67dc (patch) | |
tree | 6b5886e236bd01e03e3ee51ef1e861cf07c9e45f /plugins/mod_admin_shell.lua | |
parent | c49057902505d1c95ad8e415163c7e22efe98e5c (diff) | |
download | prosody-f937942519d15530d2b5201e5460620bdb9a67dc.tar.gz prosody-f937942519d15530d2b5201e5460620bdb9a67dc.zip |
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?
Diffstat (limited to 'plugins/mod_admin_shell.lua')
-rw-r--r-- | plugins/mod_admin_shell.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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 = { |