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
commitcd774239f73bb1eedb9a7acb872a83dbb6db122c (patch)
tree70820543e6369c9683b7eb8962798ec0382f5f53 /plugins
parentd7348a322667f5c60d0de1e425dd4cf13c203766 (diff)
downloadprosody-cd774239f73bb1eedb9a7acb872a83dbb6db122c.tar.gz
prosody-cd774239f73bb1eedb9a7acb872a83dbb6db122c.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");