Commit b2a61c87 authored by Kaarle Ritvanen's avatar Kaarle Ritvanen
Browse files

default filter action to accept

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