From 97203c06a53038bb439141adfc33f287abed293c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BF=83=E9=9A=A8=E7=B7=A3=E5=8B=95?= Date: Sat, 20 Sep 2025 01:29:42 +0800 Subject: [PATCH] One-click configuration: Vless Encryption + XHTTP --- web/html/inbounds.html | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/web/html/inbounds.html b/web/html/inbounds.html index e898e24c..1b62f86e 100644 --- a/web/html/inbounds.html +++ b/web/html/inbounds.html @@ -963,6 +963,7 @@ 'sega.com:443', 'apple.com:443', 'icloud.com:443', + 'amazon.com:443', 'lovelive-anime.jp:443', 'meta.com:443', ], @@ -1209,8 +1210,8 @@ this.linkHistory.pop(); // 保持最多10条记录 } - // 2. 发送数据到后端进行持久化保存 - await HttpUtil.post('/panel/api/server/history/save', { type: type, link: link }); + // 2. 发送数据到后端进行持久化保存,发送表单格式,而不是 JSON + await HttpUtil.postForm('/panel/api/server/history/save', { type: type, link: link }); }, // 【中文注释】: 以下是新增和修改后的方法,用于处理“一键配置”和“订阅转换” @@ -1310,14 +1311,17 @@ dest: randomDest, xver: 0, serverNames: [ randomSni, `www.${randomSni}` ], - privateKey: privateKey, - publicKey: publicKey, + settings: { + publicKey: publicKey, + spiderX: "/", + mldsa65Verify: "" + }, + privateKey: privateKey, maxClientVer: "", minClientVer: "", maxTimediff: 0, mldsa65Seed: "", // 【中文注释】: 一般情况下【留空】 - "shortIds": shortIds, - "spiderX": "/" + "shortIds": shortIds }, tcpSettings: { acceptProxyProtocol: false,