From d5e7cbdd5aa0aa6d2ed5ce85a17622159f5074a5 Mon Sep 17 00:00:00 2001 From: wanyulaowang <32100569+wanyulaowang@users.noreply.github.com> Date: Thu, 30 Jan 2025 23:29:48 +0800 Subject: [PATCH 1/2] Update cloudflarespeedtest.py MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复变量错误导致无法正常运行bug --- app/plugins/modules/cloudflarespeedtest.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/plugins/modules/cloudflarespeedtest.py b/app/plugins/modules/cloudflarespeedtest.py index 9d3482a8..d08a5a52 100644 --- a/app/plugins/modules/cloudflarespeedtest.py +++ b/app/plugins/modules/cloudflarespeedtest.py @@ -245,8 +245,8 @@ def cloudflareSpeedTest(self): CloudflareSpeedTest优选 """ self._cf_path = self.get_data_path() - self._ipv4 = os.path.join(self._cf_path, "ip.txt") - self._ipv6 = os.path.join(self._cf_path, "ipv6.txt") + self._cf_ipv4 = os.path.join(self._cf_path, "ip.txt") + self._cf_ipv6 = os.path.join(self._cf_path, "ipv6.txt") self._result_file = os.path.join(self._cf_path, "result_hosts.txt") # 获取自定义Hosts插件,若无设置则停止 From d50db45dd80b1deffdff84a7778599f0ab8b67cd Mon Sep 17 00:00:00 2001 From: wanyulaowang <32100569+wanyulaowang@users.noreply.github.com> Date: Thu, 30 Jan 2025 23:33:05 +0800 Subject: [PATCH 2/2] Update cloudflarespeedtest.py MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 更新版本号 --- app/plugins/modules/cloudflarespeedtest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/plugins/modules/cloudflarespeedtest.py b/app/plugins/modules/cloudflarespeedtest.py index d08a5a52..f03e078d 100644 --- a/app/plugins/modules/cloudflarespeedtest.py +++ b/app/plugins/modules/cloudflarespeedtest.py @@ -26,7 +26,7 @@ class CloudflareSpeedTest(_IPluginModule): # 主题色 module_color = "#F6821F" # 插件版本 - module_version = "1.0" + module_version = "1.1" # 插件作者 module_author = "thsrite" # 作者主页