summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-firewall/luasrc
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2010-11-20 17:23:44 +0000
committerJo-Philipp Wich <jow@openwrt.org>2010-11-20 17:23:44 +0000
commitaa0f710867cc4333df4efa3fdb45ae2ed51e9c50 (patch)
treeb7ac3cc1dd4910e87b3069323674776816a8e29a /applications/luci-firewall/luasrc
parent26d33454f0f151cad9ad2504c5f7b5740bb3d2a6 (diff)
applications/luci-firewall: some fixes on redirection page
Diffstat (limited to 'applications/luci-firewall/luasrc')
-rw-r--r--applications/luci-firewall/luasrc/model/cbi/luci_fw/rrule.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/applications/luci-firewall/luasrc/model/cbi/luci_fw/rrule.lua b/applications/luci-firewall/luasrc/model/cbi/luci_fw/rrule.lua
index 5769c1da0..65e3e5816 100644
--- a/applications/luci-firewall/luasrc/model/cbi/luci_fw/rrule.lua
+++ b/applications/luci-firewall/luasrc/model/cbi/luci_fw/rrule.lua
@@ -66,7 +66,7 @@ src.nocreate = true
src.default = "wan"
src.template = "cbi/firewall_zonelist"
-proto = s:taboption("general", ListValue, "proto", translate("Protocol"))
+proto = s:taboption("general", Value, "proto", translate("Protocol"))
proto.optional = true
proto:value("tcpudp", "TCP+UDP")
proto:value("tcp", "TCP")
@@ -93,6 +93,10 @@ toport = s:taboption("general", Value, "dest_port", translate("Internal port (op
"the internal host"))
toport.optional = true
toport.placeholder = "0-65535"
+toport.datatype = "portrange"
+toport:depends("proto", "tcp")
+toport:depends("proto", "udp")
+toport:depends("proto", "tcpudp")
target = s:taboption("advanced", ListValue, "target", translate("Redirection type"))
target:value("DNAT")