applications/luci-fw: make source port optional and hidden by default, most users...
[project/luci.git] / applications / luci-fw / luasrc / model / cbi / luci_fw / rrule.lua
index 2d6a429..25be2e9 100644 (file)
@@ -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")