diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2011-07-30 20:02:58 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2011-07-30 20:02:58 +0000 |
commit | 01cd04fc7813b515be6772cc1f59939b30d7ff07 (patch) | |
tree | 357bcc3f32217bfa48048cd4f43fe988384b34b2 | |
parent | 753dbfff7a093619ff80b7a537fb948d7e38b7cd (diff) |
applications/luci-firewall: fix turning off nat reflection
-rw-r--r-- | applications/luci-firewall/luasrc/model/cbi/luci_fw/rrule.lua | 1 |
1 files changed, 1 insertions, 0 deletions
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" |