aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>2017-01-24 01:35:15 +0200
committerKaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>2017-01-24 01:52:49 +0200
commit61f712fd59b4872b89674ad2d0880c4528dcf7ff (patch)
treef01ec5d327e1974e1a6e57e64462ca07b7b98a1e
parent4b838acfe5877a15e0a77bd59ff9f5dfc61604df (diff)
downloadawall-61f712fd59b4872b89674ad2d0880c4528dcf7ff.tar.bz2
awall-61f712fd59b4872b89674ad2d0880c4528dcf7ff.tar.xz
FilterLimit: rename variable
-rw-r--r--awall/modules/filter.lua12
1 files changed, 6 insertions, 6 deletions
diff --git a/awall/modules/filter.lua b/awall/modules/filter.lua
index 34ac6cf..1941bba 100644
--- a/awall/modules/filter.lua
+++ b/awall/modules/filter.lua
@@ -54,7 +54,7 @@ function FilterLimit:recentofrags(name)
if count > RECENT_MAX_COUNT then return end
- local uofs = {}
+ local cofs = {}
local sofs = {}
for _, family in ipairs{'inet', 'inet6'} do
@@ -92,7 +92,7 @@ function FilterLimit:recentofrags(name)
}
extend(
- uofs,
+ cofs,
combinations(
rec,
{{match='--update --hitcount '..count..' --seconds '..interval}}
@@ -101,7 +101,7 @@ function FilterLimit:recentofrags(name)
extend(sofs, combinations(rec, {{match='--set'}}))
end
- return uofs, sofs
+ return cofs, sofs
end
@@ -380,10 +380,10 @@ function Filter:mangleoptfrags(ofrags)
local ct = conn and target
local pl = not target and self.log
- local uofs, sofs = limitobj:recentofrags(limitchain)
+ local cofs, sofs = limitobj:recentofrags(limitchain)
- if uofs then
- ofs = self:combinelog(uofs, limitlog, 'drop', 'DROP')
+ if cofs then
+ ofs = self:combinelog(cofs, limitlog, 'drop', 'DROP')
local nxt
if ct then