diff options
author | Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi> | 2018-10-31 23:17:22 +0200 |
---|---|---|
committer | Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi> | 2018-10-31 23:17:22 +0200 |
commit | f1407c2dd443e7ab60e2da5e66c7884ee6e7c217 (patch) | |
tree | 1eb7e20194ecfa0dbc01a7d6b336ddfa3d4c55b9 | |
parent | d9704d1c733f47362ecf866ac4954acb292840e9 (diff) | |
download | awall-f1407c2dd443e7ab60e2da5e66c7884ee6e7c217.tar.bz2 awall-f1407c2dd443e7ab60e2da5e66c7884ee6e7c217.tar.xz |
provide context for host.resolvelistv1.6.6
-rw-r--r-- | awall/model.lua | 4 | ||||
-rw-r--r-- | 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 |