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
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
103f89f5
Commit
103f89f5
authored
Aug 02, 2016
by
Kaarle Ritvanen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
custom match options
parent
1d184a9f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
awall/model.lua
awall/model.lua
+6
-1
No files found.
awall/model.lua
View file @
103f89f5
...
...
@@ -492,6 +492,8 @@ function M.Rule:trules()
res
=
combinations
(
res
,
ipsetofrags
)
end
if
self
.
match
then
res
=
combinations
(
res
,
{{
opts
=
self
.
match
}})
end
res
=
combinations
(
res
,
self
:
servoptfrags
())
setfamilies
(
res
)
...
...
@@ -597,7 +599,10 @@ function M.Rule:extrarules(label, cls, options)
local
params
=
{}
for
_
,
attr
in
ipairs
(
extend
({
'in'
,
'out'
,
'src'
,
'dest'
,
'ipset'
,
'service'
},
options
.
attrs
)
extend
(
{
'in'
,
'out'
,
'src'
,
'dest'
,
'ipset'
,
'match'
,
'service'
},
options
.
attrs
)
)
do
params
[
attr
]
=
(
options
.
src
or
self
)[
attr
]
end
...
...
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