aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2020-02-24 18:38:09 +0100
committerKim Alvefur <zash@zash.se>2020-02-24 18:38:09 +0100
commit1969b96da192e7d8e3233883bdea256942c73a7b (patch)
tree70820543e6369c9683b7eb8962798ec0382f5f53 /plugins
parent4a2e73392898afb5f8b380bdef86e438761b3d77 (diff)
downloadprosody-1969b96da192e7d8e3233883bdea256942c73a7b.tar.gz
prosody-1969b96da192e7d8e3233883bdea256942c73a7b.zip
mod_admin_telnet: Allow passing list of hosts to http:list()
Lets you select what hosts to list http services on. In particular, this enables listing global http services, which was not possible before.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_admin_telnet.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/mod_admin_telnet.lua b/plugins/mod_admin_telnet.lua
index 2688209b..4dc32e47 100644
--- a/plugins/mod_admin_telnet.lua
+++ b/plugins/mod_admin_telnet.lua
@@ -1241,10 +1241,10 @@ end
def_env.http = {};
-function def_env.http:list()
+function def_env.http:list(hosts)
local print = self.session.print;
- for host in pairs(prosody.hosts) do
+ for host in get_hosts_set(hosts) do
local http_apps = modulemanager.get_items("http-provider", host);
if #http_apps > 0 then
local http_host = module:context(host):get_option_string("http_host");