From: Jo-Philipp Wich Date: Tue, 14 Mar 2017 11:52:22 +0000 (+0100) Subject: luci-app-firewall: adjust drop_invalid default (#1068) X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=b47a21fbbb8c52ff54e99cb1fc68b11c04070d0d;p=project%2Fluci.git luci-app-firewall: adjust drop_invalid default (#1068) 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 --- diff --git a/applications/luci-app-firewall/luasrc/model/cbi/firewall/zones.lua b/applications/luci-app-firewall/luasrc/model/cbi/firewall/zones.lua index 694bbd872e..500e5078f4 100644 --- a/applications/luci-app-firewall/luasrc/model/cbi/firewall/zones.lua +++ b/applications/luci-app-firewall/luasrc/model/cbi/firewall/zones.lua @@ -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")),