From: Florian Eckert Date: Thu, 31 Jan 2019 10:03:27 +0000 (+0100) Subject: luci-app-mwan3: fix possibility to not select an ipset X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=refs%2Fpull%2F2493%2Fhead;p=oweals%2Fluci.git luci-app-mwan3: fix possibility to not select an ipset Signed-off-by: Florian Eckert --- 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 3643e37ec..f20414240 100644 --- a/applications/luci-app-mwan3/luasrc/model/cbi/mwan/ruleconfig.lua +++ b/applications/luci-app-mwan3/luasrc/model/cbi/mwan/ruleconfig.lua @@ -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