mod_admin_shell: Fix showing default HTTP path in module:info
authorKim Alvefur <zash@zash.se>
Thu, 25 Nov 2021 17:07:13 +0100
changeset 11947 cf47834d3698
parent 11946 b4f77a7bf8ab
child 11948 8b5e646dfaa6
mod_admin_shell: Fix showing default HTTP path in module:info Thanks mod_http_openmetrics
plugins/mod_admin_shell.lua
--- 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)