From a84007d39eeb848901968e50cd02defb8f61bc2b Mon Sep 17 00:00:00 2001 From: xream Date: Tue, 30 Jan 2024 23:32:39 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20Clash=20=E7=B3=BB=E8=BE=93=E5=87=BA?= =?UTF-8?q?=E4=B8=AD=20tls=20=E5=AD=97=E6=AE=B5=E5=AD=98=E5=9C=A8=E4=B8=94?= =?UTF-8?q?=E4=B8=8D=E4=B8=BA=E5=B8=83=E5=B0=94=E5=80=BC=E6=97=B6,=20?= =?UTF-8?q?=E5=88=A0=E9=99=A4=E8=AF=A5=E5=AD=97=E6=AE=B5=E9=98=B2=E6=AD=A2?= =?UTF-8?q?=E5=AE=A2=E6=88=B7=E7=AB=AF=E8=A7=A3=E6=9E=90=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/package.json | 2 +- backend/src/core/proxy-utils/producers/clash.js | 4 ++++ backend/src/core/proxy-utils/producers/clashmeta.js | 3 +++ backend/src/core/proxy-utils/producers/shadowrocket.js | 3 +++ backend/src/core/proxy-utils/producers/stash.js | 3 +++ 5 files changed, 14 insertions(+), 1 deletion(-) diff --git a/backend/package.json b/backend/package.json index fe1583ff3..bff6af159 100644 --- a/backend/package.json +++ b/backend/package.json @@ -1,6 +1,6 @@ { "name": "sub-store", - "version": "2.14.196", + "version": "2.14.197", "description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and ShadowRocket.", "main": "src/main.js", "scripts": { diff --git a/backend/src/core/proxy-utils/producers/clash.js b/backend/src/core/proxy-utils/producers/clash.js index c17fc875c..5348bab78 100644 --- a/backend/src/core/proxy-utils/producers/clash.js +++ b/backend/src/core/proxy-utils/producers/clash.js @@ -144,6 +144,10 @@ export default function Clash_Producer() { proxy.fingerprint = proxy['tls-fingerprint']; } delete proxy['tls-fingerprint']; + if (isPresent(proxy, 'tls') && typeof proxy.tls !== 'boolean') { + delete proxy.tls; + } + delete proxy.subName; delete proxy.collectionName; if ( diff --git a/backend/src/core/proxy-utils/producers/clashmeta.js b/backend/src/core/proxy-utils/producers/clashmeta.js index b77b0b21f..882bb7ef4 100644 --- a/backend/src/core/proxy-utils/producers/clashmeta.js +++ b/backend/src/core/proxy-utils/producers/clashmeta.js @@ -160,6 +160,9 @@ export default function ClashMeta_Producer() { proxy.fingerprint = proxy['tls-fingerprint']; } delete proxy['tls-fingerprint']; + if (isPresent(proxy, 'tls') && typeof proxy.tls !== 'boolean') { + delete proxy.tls; + } delete proxy.subName; delete proxy.collectionName; if ( diff --git a/backend/src/core/proxy-utils/producers/shadowrocket.js b/backend/src/core/proxy-utils/producers/shadowrocket.js index ff6d927d3..20e17f4e9 100644 --- a/backend/src/core/proxy-utils/producers/shadowrocket.js +++ b/backend/src/core/proxy-utils/producers/shadowrocket.js @@ -163,6 +163,9 @@ export default function ShadowRocket_Producer() { proxy.fingerprint = proxy['tls-fingerprint']; } delete proxy['tls-fingerprint']; + if (isPresent(proxy, 'tls') && typeof proxy.tls !== 'boolean') { + delete proxy.tls; + } delete proxy.subName; delete proxy.collectionName; if ( diff --git a/backend/src/core/proxy-utils/producers/stash.js b/backend/src/core/proxy-utils/producers/stash.js index 8e6bcbac0..3f0617a79 100644 --- a/backend/src/core/proxy-utils/producers/stash.js +++ b/backend/src/core/proxy-utils/producers/stash.js @@ -242,6 +242,9 @@ export default function Stash_Producer() { proxy.fingerprint = proxy['tls-fingerprint']; } delete proxy['tls-fingerprint']; + if (isPresent(proxy, 'tls') && typeof proxy.tls !== 'boolean') { + delete proxy.tls; + } if (proxy['test-url']) { proxy['benchmark-url'] = proxy['test-url'];