Comparison

plugins/mod_admin_telnet.lua @ 8591:0c322389f994

Merge 0.10->trunk
author Kim Alvefur <zash@zash.se>
date Sat, 10 Mar 2018 20:52:14 +0100
parent 8201:a0ad62a269df
parent 8590:4b5a00fffb22
child 8876:9e72e63819dc
comparison
equal deleted inserted replaced
8586:c3b87a37c100 8591:0c322389f994
1149 local http_apps = modulemanager.get_items("http-provider", host); 1149 local http_apps = modulemanager.get_items("http-provider", host);
1150 if #http_apps > 0 then 1150 if #http_apps > 0 then
1151 local http_host = module:context(host):get_option_string("http_host"); 1151 local http_host = module:context(host):get_option_string("http_host");
1152 print("HTTP endpoints on "..host..(http_host and (" (using "..http_host.."):") or ":")); 1152 print("HTTP endpoints on "..host..(http_host and (" (using "..http_host.."):") or ":"));
1153 for _, provider in ipairs(http_apps) do 1153 for _, provider in ipairs(http_apps) do
1154 local url = module:context(host):http_url(provider.name); 1154 local url = module:context(host):http_url(provider.name, provider.default_path);
1155 print("", url); 1155 print("", url);
1156 end 1156 end
1157 print(""); 1157 print("");
1158 end 1158 end
1159 end 1159 end