From 6c3b3928f97cde828733fbd18a50c7290a1f8a0b Mon Sep 17 00:00:00 2001
From: theluyuan <1162963624@qq.com>
Date: Fri, 31 Oct 2025 09:44:44 +0800
Subject: [PATCH] =?UTF-8?q?Add=20"=E5=AE=9E=E6=97=B6=E6=97=A5=E5=BF=97"=20?=
=?UTF-8?q?link=20to=20navigation=20in=20history,=20index,=20monitoring,?=
=?UTF-8?q?=20and=20proxies=20pages?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
public/history.html | 5 +++++
public/index.html | 5 +++++
public/monitoring.html | 5 +++++
public/proxies.html | 5 +++++
src/services/validator.js | 16 ++++++++--------
5 files changed, 28 insertions(+), 8 deletions(-)
diff --git a/public/history.html b/public/history.html
index 4ececc4..272f648 100644
--- a/public/history.html
+++ b/public/history.html
@@ -43,6 +43,11 @@
系统监控
+
+
+ 实时日志
+
+
diff --git a/public/index.html b/public/index.html
index 2af4e71..3c2f73a 100644
--- a/public/index.html
+++ b/public/index.html
@@ -43,6 +43,11 @@
系统监控
+
+
+ 实时日志
+
+
diff --git a/public/monitoring.html b/public/monitoring.html
index 4251d21..1780e08 100644
--- a/public/monitoring.html
+++ b/public/monitoring.html
@@ -43,6 +43,11 @@
系统监控
+
+
+ 实时日志
+
+
diff --git a/public/proxies.html b/public/proxies.html
index 6ec736f..b3300df 100644
--- a/public/proxies.html
+++ b/public/proxies.html
@@ -43,6 +43,11 @@
系统监控
+
+
+ 实时日志
+
+
diff --git a/src/services/validator.js b/src/services/validator.js
index 07c3a7a..37a5e4d 100644
--- a/src/services/validator.js
+++ b/src/services/validator.js
@@ -76,16 +76,16 @@ class ProxyValidator {
// 检查响应内容 - 根据不同的测试URL使用不同的验证逻辑
if (response.status >= 200 && response.status < 300) {
- if (testUrl.includes('baidu.com')) {
- isValid = response.data && response.data.includes('百度');
- } else if (testUrl.includes('httpbin.org')) {
- isValid = response.data && (response.data.includes('origin') || response.data.includes('ip'));
- } else if (testUrl.includes('google.com')) {
- isValid = response.data && response.data.toLowerCase().includes('google');
- } else {
+ // if (testUrl.includes('baidu.com')) {
+ // isValid = response.data && response.data.includes('baidu');
+ // } else if (testUrl.includes('httpbin.org')) {
+ // isValid = response.data && (response.data.includes('origin') || response.data.includes('ip'));
+ // } else if (testUrl.includes('google.com')) {
+ // isValid = response.data && response.data.toLowerCase().includes('google');
+ // } else {
// 对于其他URL,只要能连接就认为有效
isValid = true;
- }
+ // }
}
// 只要有一次验证成功,立即返回成功结果