From c72115366b84060aa2dc3db2341130f6d9f8cf72 Mon Sep 17 00:00:00 2001 From: vernesong <42875168+vernesong@users.noreply.github.com> Date: Sat, 23 Nov 2024 08:32:55 +0800 Subject: [PATCH] 0.46.054 --- luci-app-openclash/Makefile | 2 +- luci-app-openclash/po/zh-cn/openclash.zh-cn.po | 3 +++ luci-app-openclash/root/usr/share/openclash/yml_change.sh | 2 ++ 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/luci-app-openclash/Makefile b/luci-app-openclash/Makefile index 2f2fc55eec..71b182bf4c 100644 --- a/luci-app-openclash/Makefile +++ b/luci-app-openclash/Makefile @@ -1,7 +1,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=luci-app-openclash -PKG_VERSION:=0.46.053 +PKG_VERSION:=0.46.054 PKG_MAINTAINER:=vernesong PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME) diff --git a/luci-app-openclash/po/zh-cn/openclash.zh-cn.po b/luci-app-openclash/po/zh-cn/openclash.zh-cn.po index 4fbf926208..0129146fc1 100644 --- a/luci-app-openclash/po/zh-cn/openclash.zh-cn.po +++ b/luci-app-openclash/po/zh-cn/openclash.zh-cn.po @@ -3422,3 +3422,6 @@ msgstr "全局" msgid "Direct" msgstr "直连" + +msgid "Error: Config File Overwrite Failed," +msgstr "错误:配置文件覆写失败," \ No newline at end of file diff --git a/luci-app-openclash/root/usr/share/openclash/yml_change.sh b/luci-app-openclash/root/usr/share/openclash/yml_change.sh index a09f0ef098..9c749ab8e9 100644 --- a/luci-app-openclash/root/usr/share/openclash/yml_change.sh +++ b/luci-app-openclash/root/usr/share/openclash/yml_change.sh @@ -789,6 +789,8 @@ begin YAML.LOG('Tip: Respect-rules Option Need Proxy-server-nameserver Option Must Be Setted, Auto Set to【114.114.114.114, 119.29.29.29, 8.8.8.8, 1.1.1.1】'); end; end; +rescue Exception => e + YAML.LOG('Error: Config File Overwrite Failed,【' + e.message + '】'); ensure File.open('$5','w') {|f| YAML.dump(Value, f)}; end" 2>/dev/null >> $LOG_FILE \ No newline at end of file