diff options
author | Florian Eckert <fe@dev.tdt.de> | 2020-08-04 15:45:42 +0200 |
---|---|---|
committer | Florian Eckert <fe@dev.tdt.de> | 2020-11-04 15:12:01 +0100 |
commit | aabded28c56790dccc2e562e6f5e92f3deb414ec (patch) | |
tree | ab85e2d2ccbd4c9cdfb7f150b6e70389a366b998 /applications/luci-app-mwan3 | |
parent | c4af30db46da4e776d2d931edec78323e3d22db8 (diff) |
luci-app-mwan3: add missing familiy selection for rules
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
Diffstat (limited to 'applications/luci-app-mwan3')
-rw-r--r-- | applications/luci-app-mwan3/luasrc/model/cbi/mwan/ruleconfig.lua | 6 |
1 files changed, 6 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 09bf8ffdd5..5bf4a4bafe 100644 --- a/applications/luci-app-mwan3/luasrc/model/cbi/mwan/ruleconfig.lua +++ b/applications/luci-app-mwan3/luasrc/model/cbi/mwan/ruleconfig.lua @@ -18,6 +18,12 @@ s = m:section(NamedSection, arg[1], "rule", "") s.addremove = false s.dynamic = false +o = s:option(ListValue, "family", translate("Internet Protocol")) +o.default = "" +o:value("", translate("IPv4 and IPv6")) +o:value("ipv4", translate("only IPv4")) +o:value("ipv6", translate("only IPv6")) + o = s:option(Value, "src_ip", translate("Source address"), translate("Supports CIDR notation (eg \"192.168.100.0/24\") without quotes")) o.datatype = ipaddr |