Commit 1db4c27f authored by Kaarle Ritvanen's avatar Kaarle Ritvanen

Filter.extraoptfrags: rename variable

parent 7729c255
...@@ -358,14 +358,14 @@ function Filter:extraoptfrags() ...@@ -358,14 +358,14 @@ function Filter:extraoptfrags()
local limitlog = self[limit].log local limitlog = self[limit].log
local limitobj = self:create(FilterLimit, self[limit], 'limit') local limitobj = self:create(FilterLimit, self[limit], 'limit')
local ofrags = {} local ofs = {}
local logch, limitofs local logch, limitofs
local accept = self:position() == 'append' local accept = self:position() == 'append'
local uofs, sofs = limitobj:recentofrags(limitchain) local uofs, sofs = limitobj:recentofrags(limitchain)
if uofs then if uofs then
ofrags, logch = self:logchain(limitlog, 'drop', 'DROP') ofs, logch = self:logchain(limitlog, 'drop', 'DROP')
limitofs = combinations(uofs, {{target=logch}}) limitofs = combinations(uofs, {{target=logch}})
if accept and self.log then extend(limitofs, self.log:optfrags()) end if accept and self.log then extend(limitofs, self.log:optfrags()) end
...@@ -375,7 +375,7 @@ function Filter:extraoptfrags() ...@@ -375,7 +375,7 @@ function Filter:extraoptfrags()
else else
if accept then if accept then
ofrags, logch = self:logchain(self.log, 'accept', 'ACCEPT') ofs, logch = self:logchain(self.log, 'accept', 'ACCEPT')
else logch = 'RETURN' end else logch = 'RETURN' end
limitofs = combinations( limitofs = combinations(
...@@ -385,8 +385,8 @@ function Filter:extraoptfrags() ...@@ -385,8 +385,8 @@ function Filter:extraoptfrags()
table.insert(limitofs, {target='DROP'}) table.insert(limitofs, {target='DROP'})
end end
extend(ofrags, combinations({{chain=limitchain}}, limitofs)) extend(ofs, combinations({{chain=limitchain}}, limitofs))
return ofrags return ofs
end end
return Filter.super(self):extraoptfrags() return Filter.super(self):extraoptfrags()
......
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