From: Jo-Philipp Wich Date: Fri, 7 Aug 2009 01:10:03 +0000 (+0000) Subject: applications/luci-fw: make source port optional and hidden by default, most users... X-Git-Tag: 0.10.0~1260 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=62fc154da1e4c200d4319806f9ad205a4e6b036a;p=oweals%2Fluci.git applications/luci-fw: make source port optional and hidden by default, most users are confused by this --- 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")