applications/luci-fw: make source port optional and hidden by default, most users...
authorJo-Philipp Wich <jow@openwrt.org>
Fri, 7 Aug 2009 01:10:03 +0000 (01:10 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Fri, 7 Aug 2009 01:10:03 +0000 (01:10 +0000)
applications/luci-fw/luasrc/model/cbi/luci_fw/rrule.lua

index 2d6a4295fbc1e2cf29485ae540ee78ff31f7332d..25be2e9efe2aa38fac7ffbaf49932b498262eba9 100644 (file)
@@ -40,6 +40,7 @@ s:option(Value, "src_ip", translate("firewall_redirect_srcip")).optional = true
 s:option(Value, "src_mac", translate("firewall_redirect_srcmac")).optional = true
 
 sport = s:option(Value, "src_port", translate("firewall_rule_srcport"))
+sport.optional = true
 sport:depends("proto", "tcp")
 sport:depends("proto", "udp")
 sport:depends("proto", "tcpudp")