diff options
author | Kim Alvefur <zash@zash.se> | 2018-07-06 00:12:38 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2018-07-06 00:12:38 +0200 |
commit | bf3c8c2b1ac1fd9fca06dc725b3ca01f542ea89a (patch) | |
tree | d60b3bfb07636d7cda9c4180a9a5329032f2cde9 /plugins/mod_http.lua | |
parent | 135f9003362c65b2e1262e22a864482f01c9e05d (diff) | |
download | prosody-bf3c8c2b1ac1fd9fca06dc725b3ca01f542ea89a.tar.gz prosody-bf3c8c2b1ac1fd9fca06dc725b3ca01f542ea89a.zip |
mod_http: Silecence harmless warnings
Diffstat (limited to 'plugins/mod_http.lua')
-rw-r--r-- | plugins/mod_http.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/mod_http.lua b/plugins/mod_http.lua index 3f7190d2..7fa55b01 100644 --- a/plugins/mod_http.lua +++ b/plugins/mod_http.lua @@ -67,8 +67,8 @@ function moduleapi.http_url(module, app_name, default_path) 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)); |