luci-app-ssr-plus: Fix cp: can't create '/dnsmasq-ssrplus.d/gfw_list.conf': No such file or directory.

Signed-off-by: Zxl hhyccc <zxlhhyccc@gmail.com>
This commit is contained in:
zxl hhyccc authored and GitHub committed 2024-11-06 23:44:09 +08:00
1 parent 6ffe77cc0b
commit 8f3b7ea66c
1 file changed
+1
@@ -10,6 +10,7 @@ local icount = 0
local args = arg[1]
local uci = luci.model.uci.cursor()
local TMP_DNSMASQ_PATH = "${DNSMASQ_CONF_DIR%*/}/dnsmasq-ssrplus.d"
luci.sys.call("mkdir -p " .. TMP_DNSMASQ_PATH)
local TMP_PATH = "/var/etc/ssrplus"
-- match comments/title/whitelist/ip address/excluded_domain
local comment_pattern = "^[!\\[@]+"