diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2009-08-07 01:10:03 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2009-08-07 01:10:03 +0000 |
commit | 62fc154da1e4c200d4319806f9ad205a4e6b036a (patch) | |
tree | dcfd239baa5d2a102a6b7aaeb98936b62e2bc940 /applications | |
parent | ea1374c96cd248d340ea083f5685c4efde7ca9c3 (diff) |
applications/luci-fw: make source port optional and hidden by default, most users are confused by this
Diffstat (limited to 'applications')
-rw-r--r-- | applications/luci-fw/luasrc/model/cbi/luci_fw/rrule.lua | 1 |
1 files changed, 1 insertions, 0 deletions
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") |