让客户端可以使用wss连接

This commit is contained in:
2025-07-20 16:52:48 -07:00
parent 855fc1643a
commit 37a72ec902
2 changed files with 1 additions and 6 deletions

5
app.js
View File

@ -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(/\/$/, ""), // 移除末尾的斜杠