commit
4f127c3254
1 changed files with 1 additions and 1 deletions
|
@ -7,7 +7,7 @@ local sys = require("luci.sys")
|
|||
local json = require("luci.jsonc")
|
||||
local adbinput = uci.get("adblock", "global", "adb_rtfile") or "/tmp/adb_runtime.json"
|
||||
local dnspath = uci.get("adblock", "global", "adb_dnsdir") or ""
|
||||
local parse = json.parse(fs.readfile(adbinput))
|
||||
local parse = json.parse(fs.readfile(adbinput) or "")
|
||||
if parse ~= nil then
|
||||
version = parse.data.adblock_version
|
||||
domains = parse.data.blocked_domains
|
||||
|
|
Loading…
Reference in a new issue