From: Jo-Philipp Wich Date: Sat, 30 Jul 2011 20:02:58 +0000 (+0000) Subject: applications/luci-firewall: fix turning off nat reflection X-Git-Tag: 0.11.0~1903 X-Git-Url: http://207.154.207.93/?a=commitdiff_plain;h=01cd04fc7813b515be6772cc1f59939b30d7ff07;p=project%2Fluci.git applications/luci-firewall: fix turning off nat reflection --- diff --git a/applications/luci-firewall/luasrc/model/cbi/luci_fw/rrule.lua b/applications/luci-firewall/luasrc/model/cbi/luci_fw/rrule.lua index ddecad33e..675cdbb35 100644 --- a/applications/luci-firewall/luasrc/model/cbi/luci_fw/rrule.lua +++ b/applications/luci-firewall/luasrc/model/cbi/luci_fw/rrule.lua @@ -136,6 +136,7 @@ sport:depends("proto", "tcpudp") reflection = s:taboption("advanced", Flag, "reflection", translate("Enable NAT Loopback")) reflection.rmempty = true +reflection.default = reflection.enabled reflection:depends({ target = "DNAT", src = wan_zone }) reflection.cfgvalue = function(...) return Flag.cfgvalue(...) or "1"