Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
alpine
awall
Commits
1d8ee361
Commit
1d8ee361
authored
Jan 08, 2017
by
Kaarle Ritvanen
Browse files
Filter.mangleoptfrags: rename variable
parent
89514168
Changes
1
Hide whitespace changes
Inline
Side-by-side
awall/modules/filter.lua
View file @
1d8ee361
...
...
@@ -350,18 +350,18 @@ function Filter:mangleoptfrags(ofrags)
local
limitobj
=
self
:
create
(
FilterLimit
,
self
[
limit
],
'limit'
)
local
ofs
local
accept
=
self
:
position
()
==
'append
'
local
conn
=
limit
==
'conn-limit
'
local
uofs
,
sofs
=
limitobj
:
recentofrags
(
limitchain
)
if
uofs
then
ofs
=
self
:
combinelog
(
uofs
,
limitlog
,
'drop'
,
'DROP'
)
if
accept
then
extend
(
ofs
,
self
:
actofrags
(
self
.
log
))
end
extend
(
ofs
,
combinations
(
sofs
,
{{
target
=
accept
and
'ACCEPT'
}}))
if
conn
then
extend
(
ofs
,
self
:
actofrags
(
self
.
log
))
end
extend
(
ofs
,
combinations
(
sofs
,
{{
target
=
conn
and
'ACCEPT'
}}))
else
local
limofs
=
limitobj
:
limitofrags
(
limitchain
)
ofs
=
accept
and
Filter
.
super
(
self
):
mangleoptfrags
(
limofs
)
or
ofs
=
conn
and
Filter
.
super
(
self
):
mangleoptfrags
(
limofs
)
or
combinations
(
limofs
,
{{
target
=
'RETURN'
}})
extend
(
ofs
,
self
:
actofrags
(
limitlog
,
'DROP'
))
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment