changeset 2539 | b85d88737a32 |
parent 2536 | 2ddb74805f91 |
child 2540 | 22a271641c29 |
--- 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);