Commit f1407c2d authored by Kaarle Ritvanen's avatar Kaarle Ritvanen

provide context for host.resolvelist

parent d9704d1c
--[[
Base data model for Alpine Wall
Copyright (C) 2012-2017 Kaarle Ritvanen
Copyright (C) 2012-2018 Kaarle Ritvanen
See LICENSE file for license details
]]--
......@@ -125,7 +125,7 @@ function M.Zone:optfrags(dir)
local aopts = nil
if self.addr then
aopts = {}
for _, addr in resolvelist(self.addr) do
for _, addr in resolvelist(self.addr, self) do
table.insert(
aopts,
{family=addr[1], [aprop]=addr[2], match='-'..aopt..' '..addr[2]}
......
......@@ -87,7 +87,7 @@ function Log:optfrags()
)
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]})
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