applications/luci-firewall: fix turning off nat reflection

This commit is contained in:
Jo-Philipp Wich 2011-07-30 20:02:58 +00:00
parent 753dbfff7a
commit 01cd04fc78

View 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"