Mercurial > prosody-modules
diff mod_firewall/definitions.lib.lua @ 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 | 2ddb74805f91 |
children | 22a271641c29 |
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);