From 37a72ec9020bf7c878f3d640fb53368ee5f30ba0 Mon Sep 17 00:00:00 2001 From: BretRen Date: Sun, 20 Jul 2025 16:52:48 -0700 Subject: [PATCH] =?UTF-8?q?=E8=AE=A9=E5=AE=A2=E6=88=B7=E7=AB=AF=E5=8F=AF?= =?UTF-8?q?=E4=BB=A5=E4=BD=BF=E7=94=A8wss=E8=BF=9E=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app.js | 5 ----- index.html | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/app.js b/app.js index 9ada272..37d9d6f 100644 --- a/app.js +++ b/app.js @@ -124,11 +124,6 @@ function setupSocketListeners(socket) { // 添加新服务器 function addServer(name, address) { - // 验证地址格式 - if (!address.startsWith("http://") && !address.startsWith("https://")) { - address = "http://" + address; - } - const newServer = { name, address: address.replace(/\/$/, ""), // 移除末尾的斜杠 diff --git a/index.html b/index.html index 0098130..ae108b5 100644 --- a/index.html +++ b/index.html @@ -96,7 +96,7 @@ ×

添加服务器

- +