Commit 9a41a039 authored by Kaarle Ritvanen's avatar Kaarle Ritvanen

provide context for host.resolvelist

parent 48e52c05
--[[ --[[
Base data model for Alpine Wall Base data model for Alpine Wall
Copyright (C) 2012-2017 Kaarle Ritvanen Copyright (C) 2012-2018 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]}
......
...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment