aboutsummaryrefslogtreecommitdiffstats
path: root/awall
diff options
context:
space:
mode:
authorKaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>2017-01-08 16:39:48 +0200
committerKaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>2017-01-24 01:52:49 +0200
commit1db4c27f39df4a1f4f718333d3d5d834aeab22a4 (patch)
treee5d76d22b457bdd0cd4777be0f5250d150658b84 /awall
parent7729c25590363a442cf236d0b1160323338dee01 (diff)
downloadawall-1db4c27f39df4a1f4f718333d3d5d834aeab22a4.tar.bz2
awall-1db4c27f39df4a1f4f718333d3d5d834aeab22a4.tar.xz
Filter.extraoptfrags: rename variable
Diffstat (limited to 'awall')
-rw-r--r--awall/modules/filter.lua10
1 files changed, 5 insertions, 5 deletions
diff --git a/awall/modules/filter.lua b/awall/modules/filter.lua
index bf34b56..e2642fe 100644
--- a/awall/modules/filter.lua
+++ b/awall/modules/filter.lua
@@ -358,14 +358,14 @@ function Filter:extraoptfrags()
local limitlog = self[limit].log
local limitobj = self:create(FilterLimit, self[limit], 'limit')
- local ofrags = {}
+ local ofs = {}
local logch, limitofs
local accept = self:position() == 'append'
local uofs, sofs = limitobj:recentofrags(limitchain)
if uofs then
- ofrags, logch = self:logchain(limitlog, 'drop', 'DROP')
+ ofs, logch = self:logchain(limitlog, 'drop', 'DROP')
limitofs = combinations(uofs, {{target=logch}})
if accept and self.log then extend(limitofs, self.log:optfrags()) end
@@ -375,7 +375,7 @@ function Filter:extraoptfrags()
else
if accept then
- ofrags, logch = self:logchain(self.log, 'accept', 'ACCEPT')
+ ofs, logch = self:logchain(self.log, 'accept', 'ACCEPT')
else logch = 'RETURN' end
limitofs = combinations(
@@ -385,8 +385,8 @@ function Filter:extraoptfrags()
table.insert(limitofs, {target='DROP'})
end
- extend(ofrags, combinations({{chain=limitchain}}, limitofs))
- return ofrags
+ extend(ofs, combinations({{chain=limitchain}}, limitofs))
+ return ofs
end
return Filter.super(self):extraoptfrags()