aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--awall/model.lua4
-rw-r--r--awall/modules/log.lua2
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