applications/luci-firewall: fix turning off nat reflection
authorJo-Philipp Wich <jow@openwrt.org>
Sat, 30 Jul 2011 20:02:58 +0000 (20:02 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Sat, 30 Jul 2011 20:02:58 +0000 (20:02 +0000)
applications/luci-firewall/luasrc/model/cbi/luci_fw/rrule.lua

index ddecad3..675cdbb 100644 (file)
@@ -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"