Changeset

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 954:bec5b6e2eab8
children 956:33d6642f4db7
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	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