luci-0.10: merge r7338
authorJo-Philipp Wich <jow@openwrt.org>
Sat, 30 Jul 2011 20:03:38 +0000 (20:03 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Sat, 30 Jul 2011 20:03:38 +0000 (20:03 +0000)
applications/luci-firewall/luasrc/model/cbi/luci_fw/rrule.lua

index ddecad33ed76db254c561421297153ce859583a8..675cdbb3526ce4d9485f2f61bbecd3445a7a4afa 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"