Diff

plugins/mod_http.lua @ 8969:48d0b908f8b6

mod_http: Silecence harmless warnings
author Kim Alvefur <zash@zash.se>
date Fri, 06 Jul 2018 00:12:38 +0200
parent 8596:71da54c7f797
child 8970:75c3b1bd9d7b
line wrap: on
line diff
--- a/plugins/mod_http.lua	Fri Jul 06 00:06:36 2018 +0200
+++ b/plugins/mod_http.lua	Fri Jul 06 00:12:38 2018 +0200
@@ -67,8 +67,8 @@
 	end
 	local services = portmanager.get_active_services();
 	local http_services = services:get("https") or services:get("http") or {};
-	for interface, ports in pairs(http_services) do
-		for port, services in pairs(ports) do
+	for interface, ports in pairs(http_services) do -- luacheck: ignore 213/interface
+		for port, services in pairs(ports) do -- luacheck: ignore 512
 			local url = {
 				scheme = (external_url.scheme or services[1].service.name);
 				host = (external_url.host or module:get_option_string("http_host", module.host));