From 53e9d1e31aa406c719d88b90cfb695b674f286a7 Mon Sep 17 00:00:00 2001 From: RoyirinRosmontis Date: Mon, 31 Aug 2026 16:25:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=EF=BC=9A=20-=20=E6=A3=80?= =?UTF-8?q?=E6=9F=A5=E6=9B=B4=E6=96=B0=E4=B8=8D=E5=86=8D=E5=86=85=E7=BD=AE?= =?UTF-8?q?=E5=9B=9E=E9=80=80=E5=9C=B0=E5=9D=80=EF=BC=9A=E5=8F=AA=E8=AF=BB?= =?UTF-8?q?=E5=8F=96=20config.json=20=E7=9A=84=20update=5Furl=EF=BC=8C?= =?UTF-8?q?=E6=9C=AA=E9=85=8D=E7=BD=AE=E6=97=B6=E6=A3=80=E6=9F=A5=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E7=9B=B4=E6=8E=A5=E5=A4=B1=E8=B4=A5=E5=B9=B6=E8=AE=B0?= =?UTF-8?q?=E5=BD=95=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lite/proxy_lite.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lite/proxy_lite.py b/lite/proxy_lite.py index dd9f83e..2a98423 100644 --- a/lite/proxy_lite.py +++ b/lite/proxy_lite.py @@ -2472,11 +2472,10 @@ class MainWindow(QWidget): if _skip_update_check() and not manual: return # 设置跳过(仅自动检查):不检查也不打日志 import json, urllib.request - # 基于 Gitea 仓库 releases API 检查更新;config.json 无 update_url 时用默认地址 + # 基于 Gitea 仓库 releases API 检查更新;地址只取 config.json 的 update_url url = str(_config_val("update_url", "") or "").strip() if not url: - url = ("https://git.rrrosmontis.icu/api/v1/repos/RoyirinRosmontis/" - "Private-Proxy/releases/latest") + raise RuntimeError("config.json 未配置 update_url") log("正在检查更新...") if _update_via_proxy(): # 走节点隧道(CONNECT,设置「使用代理更新」开启时);显式代理避免残留干扰