diff options
author | Steven Barth <steven@midlink.org> | 2009-01-09 10:05:19 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2009-01-09 10:05:19 +0000 |
commit | 25d9dc415f05bb8e535ccf3d4f3abdf67d2d9e72 (patch) | |
tree | 1515538e461f50400a10013b4836d0c5d3ceb6b9 /applications/luci-fw | |
parent | 37830bc23207eca02b9280cbbe1d56230f8eb05a (diff) |
Firewall GUI optimizations
Diffstat (limited to 'applications/luci-fw')
-rw-r--r-- | applications/luci-fw/luasrc/model/cbi/luci_fw/rrule.lua | 2 | ||||
-rw-r--r-- | applications/luci-fw/luasrc/model/cbi/luci_fw/trule.lua | 2 |
2 files changed, 0 insertions, 4 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 9c40d958f..d3fc589f8 100644 --- a/applications/luci-fw/luasrc/model/cbi/luci_fw/rrule.lua +++ b/applications/luci-fw/luasrc/model/cbi/luci_fw/rrule.lua @@ -40,7 +40,6 @@ 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_redirect_srcport")) -sport.optional = true sport:depends("proto", "tcp") sport:depends("proto", "udp") sport:depends("proto", "tcpudp") @@ -54,7 +53,6 @@ proto:value("tcpudp", "TCP+UDP") dport = s:option(Value, "src_dport", translate("firewall_redirect_srcdport")) dport.size = 5 -dport.optional = true dport:depends("proto", "tcp") dport:depends("proto", "udp") dport:depends("proto", "tcpudp") diff --git a/applications/luci-fw/luasrc/model/cbi/luci_fw/trule.lua b/applications/luci-fw/luasrc/model/cbi/luci_fw/trule.lua index 72a36f927..c7aab0f5b 100644 --- a/applications/luci-fw/luasrc/model/cbi/luci_fw/trule.lua +++ b/applications/luci-fw/luasrc/model/cbi/luci_fw/trule.lua @@ -52,13 +52,11 @@ s:option(Value, "dest_ip", translate("firewall_rule_destip")).optional = true s:option(Value, "src_mac", translate("firewall_rule_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") dport = s:option(Value, "dest_port", translate("firewall_rule_destport")) -dport.optional = true dport:depends("proto", "tcp") dport:depends("proto", "udp") dport:depends("proto", "tcpudp") |