Comparison

plugins/mod_admin_telnet.lua @ 8589:4e475ef4b569

mod_admin_telnet: Include the default path property in URL calculation (fixes #1099)
author Kim Alvefur <zash@zash.se>
date Sat, 10 Mar 2018 20:47:34 +0100
parent 7029:b2d160baa957
child 8590:4b5a00fffb22
comparison
equal deleted inserted replaced
8588:54b60a1eea2d 8589:4e475ef4b569
1090 local http_apps = modulemanager.get_items("http-provider", host); 1090 local http_apps = modulemanager.get_items("http-provider", host);
1091 if #http_apps > 0 then 1091 if #http_apps > 0 then
1092 local http_host = module:context(host):get_option("http_host"); 1092 local http_host = module:context(host):get_option("http_host");
1093 print("HTTP endpoints on "..host..(http_host and (" (using "..http_host.."):") or ":")); 1093 print("HTTP endpoints on "..host..(http_host and (" (using "..http_host.."):") or ":"));
1094 for _, provider in ipairs(http_apps) do 1094 for _, provider in ipairs(http_apps) do
1095 local url = module:context(host):http_url(provider.name); 1095 local url = module:context(host):http_url(provider.name, provider.default_path);
1096 print("", url); 1096 print("", url);
1097 end 1097 end
1098 print(""); 1098 print("");
1099 end 1099 end
1100 end 1100 end