Commit 0c5c9c6a authored by Kaarle Ritvanen's avatar Kaarle Ritvanen

allow dnat and ipsec options simultaneously

parent 187f09be
--[[
Filter module for Alpine Wall
Copyright (C) 2012-2015 Kaarle Ritvanen
Copyright (C) 2012-2016 Kaarle Ritvanen
See LICENSE file for license details
]]--
......@@ -224,10 +224,8 @@ function Filter:trules()
if self['no-track'] then
self:error('dnat option not allowed with no-track')
end
for i, attr in ipairs({'ipsec', 'ipset'}) do
if self[attr] then
self:error('dnat and '..attr..' options cannot be used simultaneously')
end
if self.ipset then
self:error('dnat and ipset options cannot be used simultaneously')
end
if type(self.dnat) == 'string' then self.dnat = {addr=self.dnat} 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