Inverted test for different port forward (#368)

This commit is contained in:
Tim Wilkinson 2022-05-22 19:05:08 -07:00 committed by GitHub
parent 1ceb7b2140
commit 754ced48b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -391,7 +391,7 @@ if fw then
-- uci the host and then
-- set the inside port unless the rule uses an outside port range
host = "option dest_ip " .. host .. "\n"
if oport:match("-") then
if not oport:match("-") then
host = host .. " option dest_port " .. iport .. "\n"
end
if not is_null(cfg.dmz_mode) and intf == "both" then