From 7c26f5db013aa57bdce0d8aafc779d49b80786fa Mon Sep 17 00:00:00 2001 From: gitea-action Date: Sun, 23 Mar 2025 12:30:23 +0800 Subject: [PATCH] luci-app-passwall: sync upstream last commit: https://github.com/xiaorouji/openwrt-passwall/commit/5fce93a2c06ffab6e3158e2af41a4bfc165727b3 --- luci-app-passwall/luasrc/passwall/util_sing-box.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/luci-app-passwall/luasrc/passwall/util_sing-box.lua b/luci-app-passwall/luasrc/passwall/util_sing-box.lua index 1d23aac0c..2e0be42ef 100644 --- a/luci-app-passwall/luasrc/passwall/util_sing-box.lua +++ b/luci-app-passwall/luasrc/passwall/util_sing-box.lua @@ -19,7 +19,7 @@ local function convert_geofile() local geosite_path = geo_dir .. "/geosite.dat" local geoip_path = geo_dir .. "/geoip.dat" if not api.is_finded("geoview") then - api.log("* 注意:缺少 geoview 组件,Sing-Box 分流将无法启用!") + api.log("* 注意:缺少 geoview 组件,Sing-Box 分流无法启用!") return end if not fs.access(srss_path) then @@ -33,13 +33,13 @@ local function convert_geofile() local cmd = string.format("geoview -type %s -action convert -input %s -list '%s' -output %s -lowmem=true", prefix, file_path, k, srs_file) sys.exec(cmd) - local status = fs.access(srs_file) and "成功。" or "失败!" - api.log(string.format(" - 转换 %s:%s ... %s", prefix, k, status)) + --local status = fs.access(srs_file) and "成功。" or "失败!" + --api.log(string.format(" - 转换 %s:%s ... %s", prefix, k, status)) end end end end - api.log("Sing-Box 规则集转换:") + --api.log("Sing-Box 规则集转换:") convert(geosite_path, "geosite", geosite_all_tag) convert(geoip_path, "geoip", geoip_all_tag) end