luci-app-mwan3: add missing familiy selection for rules
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
This commit is contained in:
parent
c4af30db46
commit
aabded28c5
1 changed files with 6 additions and 0 deletions
|
@ -18,6 +18,12 @@ s = m:section(NamedSection, arg[1], "rule", "")
|
||||||
s.addremove = false
|
s.addremove = false
|
||||||
s.dynamic = 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"),
|
o = s:option(Value, "src_ip", translate("Source address"),
|
||||||
translate("Supports CIDR notation (eg \"192.168.100.0/24\") without quotes"))
|
translate("Supports CIDR notation (eg \"192.168.100.0/24\") without quotes"))
|
||||||
o.datatype = ipaddr
|
o.datatype = ipaddr
|
||||||
|
|
Loading…
Reference in a new issue