From 01cd04fc7813b515be6772cc1f59939b30d7ff07 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Sat, 30 Jul 2011 20:02:58 +0000 Subject: [PATCH] applications/luci-firewall: fix turning off nat reflection --- applications/luci-firewall/luasrc/model/cbi/luci_fw/rrule.lua | 1 + 1 file changed, 1 insertion(+) 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 ddecad33ed..675cdbb352 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" -- 2.30.2