applications/luci-fw: make source port optional and hidden by default, most users are confused by this

This commit is contained in:
Jo-Philipp Wich 2009-08-07 01:10:03 +00:00
parent ea1374c96c
commit 62fc154da1

View 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 s:option(Value, "src_mac", translate("firewall_redirect_srcmac")).optional = true
sport = s:option(Value, "src_port", translate("firewall_rule_srcport")) sport = s:option(Value, "src_port", translate("firewall_rule_srcport"))
sport.optional = true
sport:depends("proto", "tcp") sport:depends("proto", "tcp")
sport:depends("proto", "udp") sport:depends("proto", "udp")
sport:depends("proto", "tcpudp") sport:depends("proto", "tcpudp")