Software /
code /
prosody
Comparison
plugins/mod_admin_telnet.lua @ 8590:4b5a00fffb22
Merge 0.9->0.10
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 10 Mar 2018 20:49:52 +0100 |
parent | 8192:4354f556c5db |
parent | 8589:4e475ef4b569 |
child | 8591:0c322389f994 |
child | 8921:1c2925376315 |
comparison
equal
deleted
inserted
replaced
8580:b23da88b3507 | 8590:4b5a00fffb22 |
---|---|
1112 local http_apps = modulemanager.get_items("http-provider", host); | 1112 local http_apps = modulemanager.get_items("http-provider", host); |
1113 if #http_apps > 0 then | 1113 if #http_apps > 0 then |
1114 local http_host = module:context(host):get_option_string("http_host"); | 1114 local http_host = module:context(host):get_option_string("http_host"); |
1115 print("HTTP endpoints on "..host..(http_host and (" (using "..http_host.."):") or ":")); | 1115 print("HTTP endpoints on "..host..(http_host and (" (using "..http_host.."):") or ":")); |
1116 for _, provider in ipairs(http_apps) do | 1116 for _, provider in ipairs(http_apps) do |
1117 local url = module:context(host):http_url(provider.name); | 1117 local url = module:context(host):http_url(provider.name, provider.default_path); |
1118 print("", url); | 1118 print("", url); |
1119 end | 1119 end |
1120 print(""); | 1120 print(""); |
1121 end | 1121 end |
1122 end | 1122 end |