From 62fc154da1e4c200d4319806f9ad205a4e6b036a Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Fri, 7 Aug 2009 01:10:03 +0000 Subject: [PATCH] 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(+) 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 2d6a4295f..25be2e9ef 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") -- 2.25.1