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
f1407c2d
Commit
f1407c2d
authored
Oct 31, 2018
by
Kaarle Ritvanen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
provide context for host.resolvelist
parent
d9704d1c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
awall/model.lua
awall/model.lua
+2
-2
awall/modules/log.lua
awall/modules/log.lua
+1
-1
No files found.
awall/model.lua
View file @
f1407c2d
--[[
--[[
Base data model for Alpine Wall
Base data model for Alpine Wall
Copyright (C) 2012-201
7
Kaarle Ritvanen
Copyright (C) 2012-201
8
Kaarle Ritvanen
See LICENSE file for license details
See LICENSE file for license details
]]
--
]]
--
...
@@ -125,7 +125,7 @@ function M.Zone:optfrags(dir)
...
@@ -125,7 +125,7 @@ function M.Zone:optfrags(dir)
local
aopts
=
nil
local
aopts
=
nil
if
self
.
addr
then
if
self
.
addr
then
aopts
=
{}
aopts
=
{}
for
_
,
addr
in
resolvelist
(
self
.
addr
)
do
for
_
,
addr
in
resolvelist
(
self
.
addr
,
self
)
do
table.insert
(
table.insert
(
aopts
,
aopts
,
{
family
=
addr
[
1
],
[
aprop
]
=
addr
[
2
],
match
=
'-'
..
aopt
..
' '
..
addr
[
2
]}
{
family
=
addr
[
1
],
[
aprop
]
=
addr
[
2
],
match
=
'-'
..
aopt
..
' '
..
addr
[
2
]}
...
...
awall/modules/log.lua
View file @
f1407c2d
...
@@ -87,7 +87,7 @@ function Log:optfrags()
...
@@ -87,7 +87,7 @@ function Log:optfrags()
)
)
end
end
for
_
,
addr
in
resolvelist
(
self
.
mirror
)
do
for
_
,
addr
in
resolvelist
(
self
.
mirror
,
self
)
do
table.insert
(
targets
,
{
family
=
addr
[
1
],
target
=
'TEE --gateway '
..
addr
[
2
]})
table.insert
(
targets
,
{
family
=
addr
[
1
],
target
=
'TEE --gateway '
..
addr
[
2
]})
end
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