diff options
author | Kim Alvefur <zash@zash.se> | 2020-02-24 18:38:09 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2020-02-24 18:38:09 +0100 |
commit | cd774239f73bb1eedb9a7acb872a83dbb6db122c (patch) | |
tree | 70820543e6369c9683b7eb8962798ec0382f5f53 /plugins | |
parent | d7348a322667f5c60d0de1e425dd4cf13c203766 (diff) | |
download | prosody-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.lua | 4 |
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"); |