Commit b2a61c87 authored by Kaarle Ritvanen's avatar Kaarle Ritvanen

default filter action to accept

parent aa07b357
...@@ -44,6 +44,8 @@ local Filter = model.class(model.Rule) ...@@ -44,6 +44,8 @@ local Filter = model.class(model.Rule)
function Filter:init(...) function Filter:init(...)
model.Rule.init(self, unpack(arg)) model.Rule.init(self, unpack(arg))
if not self.action then self.action = 'accept' end
-- alpine v2.4 compatibility -- alpine v2.4 compatibility
if util.contains({'logdrop', 'logreject'}, self.action) then if util.contains({'logdrop', 'logreject'}, self.action) then
self:warning('Deprecated action: '..self.action) self:warning('Deprecated action: '..self.action)
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment