changeset 2535:b85d88737a32

mod_firewall: Fix file backend init code
author Matthew Wild <mwild1@gmail.com>
date Mon, 20 Feb 2017 13:13:28 +0000
parents 13b8c31dce01
children 22a271641c29
files mod_firewall/definitions.lib.lua
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mod_firewall/definitions.lib.lua	Mon Feb 20 13:12:51 2017 +0000
+++ b/mod_firewall/definitions.lib.lua	Mon Feb 20 13:13:28 2017 +0000
@@ -140,8 +140,8 @@
 		end;
 	};
 	file = {
-		init = function (list_backend, file_spec, opts)
-			local filename = file_spec:gsub("^file:");
+		init = function (self, file_spec, opts)
+			local filename = file_spec:gsub("^file:", "");
 			local file, err = io.open(filename);
 			if not file then
 				module:log("warn", "Failed to open list from %s: %s", filename, err);