From 98faa952c49af1400feaf91d32b3a3f064547b52 Mon Sep 17 00:00:00 2001 From: thsrite Date: Sat, 15 Jun 2024 19:38:15 +0800 Subject: [PATCH] =?UTF-8?q?fix=20Cloudflare=20IP=E4=BC=98=E9=80=89v1.3\n?= =?UTF-8?q?=E8=B0=83=E6=95=B4=E6=8F=92=E4=BB=B6=E5=BC=80=E5=90=AF=E7=8A=B6?= =?UTF-8?q?=E6=80=81=E5=88=A4=E6=96=AD=E6=9D=A1=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 3 ++- plugins/cloudflarespeedtest/__init__.py | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 1d72d00..42345ca 100644 --- a/package.json +++ b/package.json @@ -169,11 +169,12 @@ "name": "Cloudflare IP优选", "description": "🌩 测试 Cloudflare CDN 延迟和速度,自动优选IP。", "labels": "网络,站点", - "version": "1.2", + "version": "1.3", "icon": "cloudflare.jpg", "author": "thsrite", "level": 1, "history": { + "v1.3": "调整插件开启状态判断条件", "v1.2": "增强API安全性" } }, diff --git a/plugins/cloudflarespeedtest/__init__.py b/plugins/cloudflarespeedtest/__init__.py index df1e7f2..9244440 100644 --- a/plugins/cloudflarespeedtest/__init__.py +++ b/plugins/cloudflarespeedtest/__init__.py @@ -32,7 +32,7 @@ class CloudflareSpeedTest(_PluginBase): # 插件图标 plugin_icon = "cloudflare.jpg" # 插件版本 - plugin_version = "1.2" + plugin_version = "1.3" # 插件作者 plugin_author = "thsrite" # 作者主页 @@ -470,7 +470,7 @@ class CloudflareSpeedTest(_PluginBase): }) def get_state(self) -> bool: - return True if self._cf_ip and self._cron else False + return True if self._cf_ip and self._cron and (self._ipv4 or self._ipv6) else False @staticmethod def get_command() -> List[Dict[str, Any]]: