Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
awall
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
8
Issues
8
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
alpine
awall
Commits
be8890f6
Commit
be8890f6
authored
Sep 18, 2014
by
Kaarle Ritvanen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ConfigObject: inherit parent's label
parent
e04e525a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
awall/model.lua
awall/model.lua
+5
-0
awall/modules/filter.lua
awall/modules/filter.lua
+1
-1
No files found.
awall/model.lua
View file @
be8890f6
...
...
@@ -47,6 +47,11 @@ function M.ConfigObject:create(cls, params)
self
:
error
(
'Support for '
..
name
..
' objects not installed'
)
end
end
if
self
.
label
then
params
.
label
=
self
.
label
..
(
params
.
label
and
'-'
..
params
.
label
or
''
)
end
return
cls
.
morph
(
params
,
self
.
context
,
self
.
location
)
end
...
...
awall/modules/filter.lua
View file @
be8890f6
...
...
@@ -121,7 +121,7 @@ function Filter:trules()
local
obj
=
self
.
extrarules
[
key
]
if
not
obj
then
local
params
=
{
label
=
(
self
.
label
and
self
.
label
..
'-'
or
''
)
..
label
}
local
params
=
{
label
=
label
}
for
i
,
attr
in
ipairs
(
{
'in'
,
'out'
,
'src'
,
'dest'
,
'dnat'
,
'ipset'
,
'ipsec'
,
'service'
}
)
do
...
...
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