From 5131d37d580264ecefcce601b9b90e0d92d9fab1 Mon Sep 17 00:00:00 2001 From: Dyna <108321411+Ahaohaohao@users.noreply.github.com> Date: Wed, 30 Jul 2025 19:59:11 +0800 Subject: [PATCH] fix: the issue of home page port being out of sync (#4271) * synchronize port 7897 * Update UPDATELOG.md --- UPDATELOG.md | 1 + src-tauri/src/core/async_proxy_query.rs | 2 +- src-tauri/src/core/event_driven_proxy.rs | 2 +- src/components/profile/rules-editor-viewer.tsx | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/UPDATELOG.md b/UPDATELOG.md index b23c0057..06ff83ef 100644 --- a/UPDATELOG.md +++ b/UPDATELOG.md @@ -45,6 +45,7 @@ - 修复 `IPC` 迁移后节点测速功能异常 - 修复 `IPC` 迁移后连接上下行速率计算功能异常 - 修复 `External-Controller-Cors` 无法保存所需前置条件 +- 修复首页端口不一致问题 ### 🔧 技术改进 diff --git a/src-tauri/src/core/async_proxy_query.rs b/src-tauri/src/core/async_proxy_query.rs index a6a20cc1..800dbe12 100644 --- a/src-tauri/src/core/async_proxy_query.rs +++ b/src-tauri/src/core/async_proxy_query.rs @@ -26,7 +26,7 @@ impl Default for AsyncSysproxy { Self { enable: false, host: "127.0.0.1".to_string(), - port: 7890, + port: 7897, bypass: String::new(), } } diff --git a/src-tauri/src/core/event_driven_proxy.rs b/src-tauri/src/core/event_driven_proxy.rs index 9e0bd68b..52370ce9 100644 --- a/src-tauri/src/core/event_driven_proxy.rs +++ b/src-tauri/src/core/event_driven_proxy.rs @@ -58,7 +58,7 @@ impl Default for ProxyState { sys_proxy: Sysproxy { enable: false, host: "127.0.0.1".to_string(), - port: 7890, + port: 7897, bypass: "".to_string(), }, last_updated: std::time::Instant::now(), diff --git a/src/components/profile/rules-editor-viewer.tsx b/src/components/profile/rules-editor-viewer.tsx index 85000813..5d165d51 100644 --- a/src/components/profile/rules-editor-viewer.tsx +++ b/src/components/profile/rules-editor-viewer.tsx @@ -156,7 +156,7 @@ const rules: { }, { name: "IN-PORT", - example: "7890", + example: "7897", validator: (value) => portValidator(value), }, {