Commit e4a05f19 authored by Kaarle Ritvanen's avatar Kaarle Ritvanen

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

parent 01331898
......@@ -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
......
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