Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
awall
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
7
Issues
7
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
alpine
awall
Commits
1db4c27f
Commit
1db4c27f
authored
Jan 08, 2017
by
Kaarle Ritvanen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Filter.extraoptfrags: rename variable
parent
7729c255
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
awall/modules/filter.lua
awall/modules/filter.lua
+5
-5
No files found.
awall/modules/filter.lua
View file @
1db4c27f
...
...
@@ -358,14 +358,14 @@ function Filter:extraoptfrags()
local
limitlog
=
self
[
limit
].
log
local
limitobj
=
self
:
create
(
FilterLimit
,
self
[
limit
],
'limit'
)
local
of
rag
s
=
{}
local
ofs
=
{}
local
logch
,
limitofs
local
accept
=
self
:
position
()
==
'append'
local
uofs
,
sofs
=
limitobj
:
recentofrags
(
limitchain
)
if
uofs
then
of
rag
s
,
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
of
rag
s
,
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
(
of
rag
s
,
combinations
({{
chain
=
limitchain
}},
limitofs
))
return
of
rag
s
extend
(
ofs
,
combinations
({{
chain
=
limitchain
}},
limitofs
))
return
ofs
end
return
Filter
.
super
(
self
):
extraoptfrags
()
...
...
Write
Preview
Markdown
is supported
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