luci-app-mwan3: fix possibility to not select an ipset 2493/head
authorFlorian Eckert <fe@dev.tdt.de>
Thu, 31 Jan 2019 10:03:27 +0000 (11:03 +0100)
committerFlorian Eckert <fe@dev.tdt.de>
Thu, 31 Jan 2019 10:04:43 +0000 (11:04 +0100)
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
applications/luci-app-mwan3/luasrc/model/cbi/mwan/ruleconfig.lua

index 3643e37ec58065f21b8705f3d1c47abf7cdb3aef..f20414240e952160e91faa0a0079f6747138447e 100644 (file)
@@ -55,6 +55,7 @@ timeout.datatype = "range(1, 1000000)"
 
 ipset = mwan_rule:option(Value, "ipset", translate("IPset"),
        translate("Name of IPset rule. Requires IPset rule in /etc/dnsmasq.conf (eg \"ipset=/youtube.com/youtube\")"))
+ipset:value("", translate("-- Please choose --"))
 for _, z in ipairs(ipsets) do
        ipset:value(z)
 end