diff mod_firewall/mod_firewall.lua @ 955:97454c088b6c

mod_firewall: Use resolve_relative_path correctly
author Kim Alvefur <zash@zash.se>
date Thu, 04 Apr 2013 23:11:36 +0200
parents c91cac3b823f
children 33d6642f4db7
line wrap: on
line diff
--- a/mod_firewall/mod_firewall.lua	Thu Apr 04 20:31:21 2013 +0200
+++ b/mod_firewall/mod_firewall.lua	Thu Apr 04 23:11:36 2013 +0200
@@ -252,7 +252,7 @@
 function module.load()
 	local firewall_scripts = module:get_option_set("firewall_scripts", {});
 	for script in firewall_scripts do
-		script = resolve_relative_path(script) or script;
+		script = resolve_relative_path(prosody.paths.config, script);
 		local chain_functions, err = compile_firewall_rules(script)
 		
 		if not chain_functions then