From 6e6310eb3884e91fea8964050c6c3a368ae500f7 Mon Sep 17 00:00:00 2001 From: Bard Date: Sat, 13 Apr 2024 03:44:38 +0800 Subject: [PATCH] Update patch-luci-app-passwall.patch --- patch-luci-app-passwall.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patch-luci-app-passwall.patch b/patch-luci-app-passwall.patch index 2821dd07e..054649c73 100644 --- a/patch-luci-app-passwall.patch +++ b/patch-luci-app-passwall.patch @@ -112,7 +112,7 @@ index e202ccd..3c99e2e 100644 o:value("9.9.9.9", "9.9.9.9 (Quad9-Recommended)") o:value("208.67.220.220", "208.67.220.220 (OpenDNS)") o:value("208.67.222.222", "208.67.222.222 (OpenDNS)") -+if nixio.fs.access("/usr/share/mosdns/default.yaml") then ++if nixio.fs.access("/usr/share/mosdns/mosdns.sh") then + local mosdns_port = string.gsub(luci.sys.exec("uci -q get mosdns.config.listen_port"), "\n", "") + if mosdns_port ~= nil and result ~= "" then + o:value("127.0.0.1:" .. mosdns_port, "127.0.0.1:" .. mosdns_port .. " (MosDNS)")