From 56ece5b64400a53582e98a80411934e05438ec59 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Thu, 13 Jun 2013 17:26:21 +0000 Subject: [PATCH] luci-0.11: merge r9842 --- .../model/cbi/firewall/forward-details.lua | 17 ----------------- 1 file changed, 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 446563f1cd..c80a6d0e7a 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 -- 2.30.2