From 62fc154da1e4c200d4319806f9ad205a4e6b036a Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Fri, 7 Aug 2009 01:10:03 +0000 Subject: applications/luci-fw: make source port optional and hidden by default, most users are confused by this --- applications/luci-fw/luasrc/model/cbi/luci_fw/rrule.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'applications/luci-fw/luasrc') diff --git a/applications/luci-fw/luasrc/model/cbi/luci_fw/rrule.lua b/applications/luci-fw/luasrc/model/cbi/luci_fw/rrule.lua index 2d6a4295fb..25be2e9efe 100644 --- a/applications/luci-fw/luasrc/model/cbi/luci_fw/rrule.lua +++ b/applications/luci-fw/luasrc/model/cbi/luci_fw/rrule.lua @@ -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") -- cgit v1.2.3