Software /
code /
prosody
Diff
plugins/mod_admin_telnet.lua @ 7977:01d6298de991
plugins/various: Use type-specific config API
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 16 Mar 2017 20:46:06 +0100 |
parent | 7911:e528d848a185 |
child | 7982:e30b0cbed472 |
child | 8126:60f6f7ddd2ce |
line wrap: on
line diff
--- a/plugins/mod_admin_telnet.lua Thu Mar 16 19:09:57 2017 +0100 +++ b/plugins/mod_admin_telnet.lua Thu Mar 16 20:46:06 2017 +0100 @@ -1111,7 +1111,7 @@ 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 @@ 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