diff options
author | Kim Alvefur <zash@zash.se> | 2017-03-16 20:46:06 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2017-03-16 20:46:06 +0100 |
commit | fb749e207600e861af3f836a0316ad97fb41e553 (patch) | |
tree | 3eb037d679778fc3effcf9e0c850e8b6b781b032 /plugins/mod_admin_telnet.lua | |
parent | 91262e2bc848551822a25cad697d6d660dd5301e (diff) | |
download | prosody-fb749e207600e861af3f836a0316ad97fb41e553.tar.gz prosody-fb749e207600e861af3f836a0316ad97fb41e553.zip |
plugins/various: Use type-specific config API
Diffstat (limited to 'plugins/mod_admin_telnet.lua')
-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 b24adcf9..04e93d7e 100644 --- a/plugins/mod_admin_telnet.lua +++ b/plugins/mod_admin_telnet.lua @@ -1111,7 +1111,7 @@ function def_env.http:list() for host in pairs(prosody.hosts) do local http_apps = modulemanager.get_items("http-provider", host); if #http_apps > 0 then - local http_host = module:context(host):get_option("http_host"); + local http_host = module:context(host):get_option_string("http_host"); print("HTTP endpoints on "..host..(http_host and (" (using "..http_host.."):") or ":")); for _, provider in ipairs(http_apps) do local url = module:context(host):http_url(provider.name); @@ -1121,7 +1121,7 @@ function def_env.http:list() end end - local default_host = module:get_option("http_default_host"); + local default_host = module:get_option_string("http_default_host"); if not default_host then print("HTTP requests to unknown hosts will return 404 Not Found"); else |