From 369e3ddba0fd3abf5d0613aebf07975710c1837b Mon Sep 17 00:00:00 2001 From: Kaarle Ritvanen Date: Thu, 13 Dec 2018 21:28:43 +0200 Subject: optfrag: rename constant: FAMILYFRAGS --- awall/model.lua | 2 +- awall/modules/mark.lua | 4 ++-- awall/modules/tproxy.lua | 4 ++-- awall/optfrag.lua | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/awall/model.lua b/awall/model.lua index 8daffa9..bf09402 100644 --- a/awall/model.lua +++ b/awall/model.lua @@ -591,7 +591,7 @@ function M.Rule:trules() end ofrags = filter( - combinations(ofrags, optfrag.FAMILYFRAGS), + combinations(ofrags, optfrag.FAMILIES), function(r) return self:trulefilter(r) end ) diff --git a/awall/modules/mark.lua b/awall/modules/mark.lua index ed6a417..4bcafb3 100644 --- a/awall/modules/mark.lua +++ b/awall/modules/mark.lua @@ -1,6 +1,6 @@ --[[ Packet marking module for Alpine Wall -Copyright (C) 2012-2017 Kaarle Ritvanen +Copyright (C) 2012-2019 Kaarle Ritvanen See LICENSE file for license details ]]-- @@ -40,7 +40,7 @@ end local function restoremark(config) if list(config['route-track'])[1] then return combinations( - optfrag.FAMILYFRAGS, + optfrag.FAMILIES, {{chain='OUTPUT'}, {chain='PREROUTING'}}, { { diff --git a/awall/modules/tproxy.lua b/awall/modules/tproxy.lua index 69ec9d6..601d116 100644 --- a/awall/modules/tproxy.lua +++ b/awall/modules/tproxy.lua @@ -1,6 +1,6 @@ --[[ Transparent proxy module for Alpine Wall -Copyright (C) 2012-2017 Kaarle Ritvanen +Copyright (C) 2012-2019 Kaarle Ritvanen See LICENSE file for license details ]]-- @@ -59,7 +59,7 @@ local function divert(config) ofrags, {chain='PREROUTING', match='-m socket', target='divert'} ) - return combinations(optfrag.FAMILYFRAGS, {{table='mangle'}}, ofrags) + return combinations(optfrag.FAMILIES, {{table='mangle'}}, ofrags) end end diff --git a/awall/optfrag.lua b/awall/optfrag.lua index 1ca4796..f63cb3f 100644 --- a/awall/optfrag.lua +++ b/awall/optfrag.lua @@ -16,7 +16,7 @@ local function ffrags(families) return map(families, function(f) return {family=f} end) end -M.FAMILYFRAGS = ffrags(FAMILIES) +M.FAMILIES = ffrags(FAMILIES) function M.combinations(of1, ...) local arg = {...} -- cgit v1.2.3