diff options
-rw-r--r-- | conf/modules.conf | 2 | ||||
-rw-r--r-- | rules/rspamd.lua | 2 |
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 |