From f5595ce87e69c5548039c320bde49d152268aac5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=95=8A=E4=BC=8A=E7=9A=84=E4=BC=8A=E9=98=BF?= <150233177+Ayideyia@users.noreply.github.com> Date: Mon, 11 Aug 2025 20:44:38 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=9D=E5=A7=8B=E5=8C=96=20ws-opts=20?= =?UTF-8?q?=E4=BB=A5=E9=81=BF=E5=85=8D=E6=9C=AA=E5=AE=9A=E4=B9=89=E6=97=B6?= =?UTF-8?q?=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/src/core/proxy-utils/producers/clashmeta.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/backend/src/core/proxy-utils/producers/clashmeta.js b/backend/src/core/proxy-utils/producers/clashmeta.js index a04ebfe1..6816d258 100644 --- a/backend/src/core/proxy-utils/producers/clashmeta.js +++ b/backend/src/core/proxy-utils/producers/clashmeta.js @@ -203,6 +203,9 @@ export default function ClashMeta_Producer() { const reg = /^(.*?)(?:\?ed=(\d+))?$/; // eslint-disable-next-line no-unused-vars const [_, path = '', ed = ''] = reg.exec(wsPath); + if (!proxy['ws-opts']) { + proxy['ws-opts'] = {}; + } proxy['ws-opts'].path = path; if (ed !== '') { proxy['ws-opts']['early-data-header-name'] =