浏览代码

luci-app-ssr-plus: update.sh: adapt to openwrt official dnsmasq modifiy.

zxl hhyccc 11 月之前
父节点
当前提交
8c362ba2cd
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      luci-app-ssr-plus/root/usr/share/shadowsocksr/update.lua

+ 1 - 1
luci-app-ssr-plus/root/usr/share/shadowsocksr/update.lua

@@ -9,7 +9,7 @@ require "luci.model.uci"
 local icount = 0
 local icount = 0
 local args = arg[1]
 local args = arg[1]
 local uci = luci.model.uci.cursor()
 local uci = luci.model.uci.cursor()
-local TMP_DNSMASQ_PATH = "/tmp/dnsmasq.d/dnsmasq-ssrplus.d"
+local TMP_DNSMASQ_PATH = "${DNSMASQ_CONF_DIR%*/}/dnsmasq-ssrplus.d"
 local TMP_PATH = "/var/etc/ssrplus"
 local TMP_PATH = "/var/etc/ssrplus"
 -- match comments/title/whitelist/ip address/excluded_domain
 -- match comments/title/whitelist/ip address/excluded_domain
 local comment_pattern = "^[!\\[@]+"
 local comment_pattern = "^[!\\[@]+"