aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>2014-04-16 23:29:00 +0300
committerKaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>2014-04-16 23:46:35 +0300
commite4a05f192e4eadfc11ca219aaa3e8515a0f66693 (patch)
tree0b1125b6c7a56e0fb89a6fb820edaeb0c7058622
parent01331898c582d4df55e04fa98e2c1806a8bd32b4 (diff)
downloadawall-1.1-stable.tar.bz2
awall-1.1-stable.tar.xz
do not generate superfluous chain when 'dnat' used without 'dest'v1.1.11.1-stable
-rw-r--r--awall/model.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/awall/model.lua b/awall/model.lua
index 0ab60fd..8124709 100644
--- a/awall/model.lua
+++ b/awall/model.lua
@@ -436,8 +436,9 @@ function Rule:trules()
combined = {}
for i, ofrag in ipairs(res) do
- local cc = combinations({ofrag}, addrofrags)
- if #cc < #addrofrags then
+ local aofs = combinations(addrofrags, {{family=ofrag.family}})
+ local cc = combinations({ofrag}, aofs)
+ if #cc < #aofs then
combined = nil
break
end