* luci-0.8: backport firewall fixes
authorJo-Philipp Wich <jow@openwrt.org>
Tue, 30 Sep 2008 21:20:01 +0000 (21:20 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Tue, 30 Sep 2008 21:20:01 +0000 (21:20 +0000)
applications/luci-fw/luasrc/model/cbi/luci_fw/firewall.lua

index 8ff03b02df6193f7136f59960c98033cb010360e..0d9af93fc6efd79f8071181b51ffb66eb2ffb3ec 100644 (file)
@@ -18,10 +18,10 @@ s.addremove = true
 s.anonymous = true
 
 iface = s:option(ListValue, "src")
-iface:value("")
 iface.rmempty = true
 
 oface = s:option(ListValue, "dest")
+oface:value("")
 oface.optional = true
 
 luci.model.uci.cursor():foreach("firewall", "zone",
@@ -56,6 +56,7 @@ dport:depends("proto", "tcpudp")
 
 jump = s:option(ListValue, "target")
 jump.rmempty = true
+jump.default = "ACCEPT"
 jump:value("DROP", translate("fw_drop"))
 jump:value("ACCEPT", translate("fw_accept"))
 jump:value("REJECT", translate("fw_reject"))