Software /
code /
prosody
Diff
plugins/mod_admin_shell.lua @ 11943:cf47834d3698
mod_admin_shell: Fix showing default HTTP path in module:info
Thanks mod_http_openmetrics
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 25 Nov 2021 17:07:13 +0100 |
parent | 11932:92925f1320e7 |
child | 11945:142b9c4010fe |
line wrap: on
line diff
--- a/plugins/mod_admin_shell.lua Thu Nov 25 16:57:01 2021 +0100 +++ b/plugins/mod_admin_shell.lua Thu Nov 25 17:07:13 2021 +0100 @@ -443,7 +443,7 @@ ["adhoc-provider"] = item_name, ["auth-provider"] = item_name, ["storage-provider"] = item_name, - ["http-provider"] = function(item, mod) return mod:http_url(item.name); end, + ["http-provider"] = function(item, mod) return mod:http_url(item.name, item.default_path); end, ["net-provider"] = item_name, ["measure"] = function(item) return item.name .. " (" .. suf(item.conf and item.conf.unit, " ") .. item.type .. ")"; end, ["metric"] = function(item)