Changeset

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
parents 4075:4841cf3fded5
children 4077:f85ea76447dd
files mod_http_upload/mod_http_upload.lua
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
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");