diff options
author | Florian Eckert <fe@dev.tdt.de> | 2020-08-12 13:11:25 +0200 |
---|---|---|
committer | Florian Eckert <fe@dev.tdt.de> | 2020-11-04 15:12:01 +0100 |
commit | 9830683aed14acf42670df7a19a89bd02af3a41e (patch) | |
tree | 172f62adc3f65201fcd50164927a76dc51f35204 | |
parent | aabded28c56790dccc2e562e6f5e92f3deb414ec (diff) |
luci-app-mwan3: only show port options if proto is tcp or udp
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
-rw-r--r-- | applications/luci-app-mwan3/luasrc/model/cbi/mwan/ruleconfig.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/applications/luci-app-mwan3/luasrc/model/cbi/mwan/ruleconfig.lua b/applications/luci-app-mwan3/luasrc/model/cbi/mwan/ruleconfig.lua index 5bf4a4baf..e7cb30225 100644 --- a/applications/luci-app-mwan3/luasrc/model/cbi/mwan/ruleconfig.lua +++ b/applications/luci-app-mwan3/luasrc/model/cbi/mwan/ruleconfig.lua @@ -30,6 +30,8 @@ o.datatype = ipaddr o = s:option(Value, "src_port", translate("Source port"), translate("May be entered as a single or multiple port(s) (eg \"22\" or \"80,443\") or as a portrange (eg \"1024:2048\") without quotes")) +o:depends("proto", "tcp") +o:depends("proto", "udp") o = s:option(Value, "dest_ip", translate("Destination address"), translate("Supports CIDR notation (eg \"192.168.100.0/24\") without quotes")) @@ -37,6 +39,8 @@ o.datatype = ipaddr o = s:option(Value, "dest_port", translate("Destination port"), translate("May be entered as a single or multiple port(s) (eg \"22\" or \"80,443\") or as a portrange (eg \"1024:2048\") without quotes")) +o:depends("proto", "tcp") +o:depends("proto", "udp") o = s:option(Value, "proto", translate("Protocol"), translate("View the content of /etc/protocols for protocol description")) |