diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2013-06-13 17:25:44 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2013-06-13 17:25:44 +0000 |
commit | b543594e5e175fe96d8f9ed985f6f04cdeee7d10 (patch) | |
tree | a00403dc242297253e82a21dbf126deda90b7c82 | |
parent | 2a366f4c554d46a33f727bc04e4d7a7798e5be3b (diff) |
applications/luci-firewall: remove nat reflection dependency on the wan zone, it causes issues with network lists and is not needed with fw3 anymore
-rw-r--r-- | applications/luci-firewall/luasrc/model/cbi/firewall/forward-details.lua | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/applications/luci-firewall/luasrc/model/cbi/firewall/forward-details.lua b/applications/luci-firewall/luasrc/model/cbi/firewall/forward-details.lua index 446563f1c..c80a6d0e7 100644 --- a/applications/luci-firewall/luasrc/model/cbi/firewall/forward-details.lua +++ b/applications/luci-firewall/luasrc/model/cbi/firewall/forward-details.lua @@ -39,22 +39,6 @@ else m.title = "%s - %s" %{ translate("Firewall - Port Forwards"), name } end -local wan_zone = nil - -m.uci:foreach("firewall", "zone", - function(s) - local n = s.network or s.name - if n then - local i - for i in n:gmatch("%S+") do - if i == "wan" then - wan_zone = s.name - return false - end - end - end - end) - s = m:section(NamedSection, arg[1], "redirect", "") s.anonymous = true s.addremove = false @@ -164,7 +148,6 @@ o.datatype = "portrange" o = s:option(Flag, "reflection", translate("Enable NAT Loopback")) o.rmempty = true o.default = o.enabled -o:depends("src", wan_zone) o.cfgvalue = function(...) return Flag.cfgvalue(...) or "1" end |