luci-app-firewall: adjust drop_invalid default (#1068)
authorJo-Philipp Wich <jo@mein.io>
Tue, 14 Mar 2017 11:52:22 +0000 (12:52 +0100)
committerJo-Philipp Wich <jo@mein.io>
Tue, 14 Mar 2017 11:52:25 +0000 (12:52 +0100)
Since firewall3 commit b33f78371e7c7b6a131c2b6c01673cbd4b3c13d1 the
drop_invalid option is off by default.

Adjust LuCI view to properly handle the changed semantics.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
applications/luci-app-firewall/luasrc/model/cbi/firewall/zones.lua

index 694bbd872ece499cfe581d98d0726ea5424f571e..500e5078f42c2f0c5b0d6cb88a16e8db2f5efd9f 100644 (file)
@@ -19,7 +19,6 @@ s.addremove = false
 s:option(Flag, "syn_flood", translate("Enable SYN-flood protection"))
 
 o = s:option(Flag, "drop_invalid", translate("Drop invalid packets"))
-o.default = o.enabled
 
 p = {
        s:option(ListValue, "input", translate("Input")),