changeset 6555:d81bb13c0e87

mod_firewall: Report success if script is already loaded and hasn't changed
author Matthew Wild <mwild1@gmail.com>
date Sun, 24 May 2026 19:58:55 +0100
parents 0002c727e918
children 7477e97a9045
files mod_firewall/mod_firewall.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mod_firewall/mod_firewall.lua	Sun May 24 19:35:52 2026 +0100
+++ b/mod_firewall/mod_firewall.lua	Sun May 24 19:58:55 2026 +0100
@@ -697,7 +697,7 @@
 	local last_modified = (lfs.attributes(script) or {}).modification or os.time();
 	if loaded_scripts[script] then
 		if loaded_scripts[script].last_modified == last_modified then
-			return; -- Already loaded, and source file hasn't changed
+			return true; -- Already loaded, and source file hasn't changed
 		end
 		module:log("debug", "Reloading %s", script);
 		-- Already loaded, but the source file has changed