Software /
code /
prosody-modules
Diff
mod_http_upload/mod_http_upload.lua @ 4076:f1f796e551f1
mod_http_upload: Log warning when loaded on user host
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Tue, 25 Aug 2020 13:13:56 +0100 |
parent | 3962:190e74e097ee |
child | 4443:0a56dc6c61af |
line wrap: on
line diff
--- a/mod_http_upload/mod_http_upload.lua Sat Aug 22 18:28:19 2020 +0200 +++ b/mod_http_upload/mod_http_upload.lua Tue Aug 25 13:13:56 2020 +0100 @@ -41,6 +41,10 @@ file_size_limit = parser_body_limit; end +if prosody.hosts[module.host].type == "local" then + module:log("warn", "mod_%s loaded on a user host, this may be incompatible with some client software, see docs for correct usage", module.name); +end + -- depends module:depends("http"); module:depends("disco");