mirror of https://github.com/aredn/aredn.git
Inverted test for different port forward (#368)
This commit is contained in:
parent
1ceb7b2140
commit
754ced48b0
|
@ -391,7 +391,7 @@ if fw then
|
||||||
-- uci the host and then
|
-- uci the host and then
|
||||||
-- set the inside port unless the rule uses an outside port range
|
-- set the inside port unless the rule uses an outside port range
|
||||||
host = "option dest_ip " .. host .. "\n"
|
host = "option dest_ip " .. host .. "\n"
|
||||||
if oport:match("-") then
|
if not oport:match("-") then
|
||||||
host = host .. " option dest_port " .. iport .. "\n"
|
host = host .. " option dest_port " .. iport .. "\n"
|
||||||
end
|
end
|
||||||
if not is_null(cfg.dmz_mode) and intf == "both" then
|
if not is_null(cfg.dmz_mode) and intf == "both" then
|
||||||
|
|
Loading…
Reference in New Issue