From 5a6c470f56947c9c447c49bd54ff282420cff5da Mon Sep 17 00:00:00 2001 From: Stan Grishin Date: Sat, 10 Apr 2021 18:44:49 +0000 Subject: luci-app-simple-adblock: bugfix: crash when dnsmasq.ipset selected Signed-off-by: Stan Grishin --- .../luci-app-simple-adblock/luasrc/model/cbi/simple-adblock.lua | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'applications/luci-app-simple-adblock/luasrc/model/cbi/simple-adblock.lua') diff --git a/applications/luci-app-simple-adblock/luasrc/model/cbi/simple-adblock.lua b/applications/luci-app-simple-adblock/luasrc/model/cbi/simple-adblock.lua index b60123e5d5..0b38cf73ac 100644 --- a/applications/luci-app-simple-adblock/luasrc/model/cbi/simple-adblock.lua +++ b/applications/luci-app-simple-adblock/luasrc/model/cbi/simple-adblock.lua @@ -83,6 +83,10 @@ elseif targetDNS == "dnsmasq.conf" then outputFile="/var/dnsmasq.d/" .. packageName .. "" outputCache="/var/run/" .. packageName .. ".dnsmasq.cache" outputGzip="/etc/" .. packageName .. ".dnsmasq.gz" +elseif targetDNS == "dnsmasq.ipset" then + outputFile="/var/dnsmasq.d/" .. packageName .. ".ipset" + outputCache="/var/run/" .. packageName .. ".ipset.cache" + outputGzip="/etc/" .. packageName .. ".ipset.gz" elseif targetDNS == "dnsmasq.servers" then outputFile="/var/run/" .. packageName .. ".servers" outputCache="/var/run/" .. packageName .. ".servers.cache" -- cgit v1.2.3