plugins/mod_admin_telnet.lua
changeset 8593 4b5a00fffb22
parent 8195 4354f556c5db
parent 8592 4e475ef4b569
child 8594 0c322389f994
child 8924 1c2925376315
equal deleted inserted replaced
8583:b23da88b3507 8593: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