Commit b682015f authored by Kaarle Ritvanen's avatar Kaarle Ritvanen

do not generate superfluous chain when 'dnat' used without 'dest'

parent 8e84eb17
......@@ -449,8 +449,9 @@ function M.Rule:trules()
combined = {}
for i, ofrag in ipairs(res) do
local cc = combinations({ofrag}, addrofrags)
if #cc < #addrofrags then
local aofs = combinations(addrofrags, {{}})
local cc = combinations({ofrag}, aofs)
if #cc < #aofs then
combined = nil
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment