luci-app-mwan3: add missing familiy selection for rules
authorFlorian Eckert <fe@dev.tdt.de>
Tue, 4 Aug 2020 13:45:42 +0000 (15:45 +0200)
committerFlorian Eckert <fe@dev.tdt.de>
Wed, 4 Nov 2020 14:12:01 +0000 (15:12 +0100)
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
applications/luci-app-mwan3/luasrc/model/cbi/mwan/ruleconfig.lua

index 09bf8ffdd5eeaa537634383c5b30c25140ec029a..5bf4a4bafe2e3572c996960df83e99002e1bb5d7 100644 (file)
@@ -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