From f1407c2dd443e7ab60e2da5e66c7884ee6e7c217 Mon Sep 17 00:00:00 2001 From: Kaarle Ritvanen Date: Wed, 31 Oct 2018 23:17:22 +0200 Subject: [PATCH] provide context for host.resolvelist --- awall/model.lua | 4 ++-- awall/modules/log.lua | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/awall/model.lua b/awall/model.lua index 003789f..da2009c 100644 --- a/awall/model.lua +++ b/awall/model.lua @@ -1,6 +1,6 @@ --[[ 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]} diff --git a/awall/modules/log.lua b/awall/modules/log.lua index a1fcb8c..59c0c56 100644 --- a/awall/modules/log.lua +++ b/awall/modules/log.lua @@ -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 -- GitLab