summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-simple-adblock/luasrc/model
diff options
context:
space:
mode:
authorStan Grishin <stangri@melmac.net>2021-04-10 18:44:49 +0000
committerStan Grishin <stangri@melmac.net>2021-04-10 18:44:49 +0000
commit5a6c470f56947c9c447c49bd54ff282420cff5da (patch)
treefa2ea7d6a31a9ce5c363a74bfc7601cf47741e02 /applications/luci-app-simple-adblock/luasrc/model
parent3b652a70a8126fbcb1d5da06dac695b61bc5e261 (diff)
luci-app-simple-adblock: bugfix: crash when dnsmasq.ipset selected
Signed-off-by: Stan Grishin <stangri@melmac.net>
Diffstat (limited to 'applications/luci-app-simple-adblock/luasrc/model')
-rw-r--r--applications/luci-app-simple-adblock/luasrc/model/cbi/simple-adblock.lua4
1 files changed, 4 insertions, 0 deletions
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"