aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rspamd.com>2024-11-06 13:56:56 +0000
committerVsevolod Stakhov <vsevolod@rspamd.com>2024-11-06 13:56:56 +0000
commit6cca898932e253ec26d1022178b7394348286121 (patch)
tree2bbde5a647d41e274a3d120e4eec547765324d18
parent0c3e5ce444c31e286855eef2752ce597206a44d5 (diff)
downloadrspamd-6cca898932e253ec26d1022178b7394348286121.tar.gz
rspamd-6cca898932e253ec26d1022178b7394348286121.zip
[Minor] Fix optionality
-rw-r--r--conf/modules.conf2
-rw-r--r--rules/rspamd.lua2
2 files changed, 2 insertions, 2 deletions
diff --git a/conf/modules.conf b/conf/modules.conf
index f99eab8dc..51f1f420e 100644
--- a/conf/modules.conf
+++ b/conf/modules.conf
@@ -15,4 +15,4 @@
# See https://rspamd.com/doc/tutorials/writing_rules.html for details
.include(glob=true) "${CONFDIR}/modules.d/*.conf"
-.include(glob=true) "${CONFDIR}/modules.local.d/*.conf" \ No newline at end of file
+.include(try=true, glob=true) "${CONFDIR}/modules.local.d/*.conf" \ No newline at end of file
diff --git a/rules/rspamd.lua b/rules/rspamd.lua
index 3b80a035a..e41a946cb 100644
--- a/rules/rspamd.lua
+++ b/rules/rspamd.lua
@@ -51,7 +51,7 @@ else
end
end
-for local_lua in rspamd_util.glob(local_conf .. '/lua.local.d/*.lua') do
+for _, local_lua in ipairs(rspamd_util.glob(local_conf .. '/lua.local.d/*.lua') or {}) do
dofile(local_lua)
end