diff options
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") |