From 169bd88bef6e2c711daf2e875aae5d273a9aff9b Mon Sep 17 00:00:00 2001 From: xream Date: Sun, 18 Aug 2024 15:53:13 +0800 Subject: [PATCH] =?UTF-8?q?feat(uri):=20VMess=20URI=20=E8=BE=93=E5=85=A5?= =?UTF-8?q?=E6=94=AF=E6=8C=81=20allowInsecure(=E8=BE=93=E5=87=BA=E4=B8=8D?= =?UTF-8?q?=E6=94=AF=E6=8C=81,=20=E4=B8=8E=202dust/v2rayN=20=E5=88=86?= =?UTF-8?q?=E4=BA=AB=E9=93=BE=E6=8E=A5=E9=80=BB=E8=BE=91=E4=B8=80=E8=87=B4?= =?UTF-8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/package.json | 2 +- backend/src/core/proxy-utils/parsers/index.js | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/backend/package.json b/backend/package.json index 0ddc0e8..e25e91d 100644 --- a/backend/package.json +++ b/backend/package.json @@ -1,6 +1,6 @@ { "name": "sub-store", - "version": "2.14.360", + "version": "2.14.361", "description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and ShadowRocket.", "main": "src/main.js", "scripts": { diff --git a/backend/src/core/proxy-utils/parsers/index.js b/backend/src/core/proxy-utils/parsers/index.js index b3d1a6e..105b663 100644 --- a/backend/src/core/proxy-utils/parsers/index.js +++ b/backend/src/core/proxy-utils/parsers/index.js @@ -296,6 +296,11 @@ function URI_VMess() { ? !params.verify_cert : undefined, }; + if (!proxy['skip-cert-verify'] && isPresent(params.allowInsecure)) { + proxy['skip-cert-verify'] = /(TRUE)|1/i.test( + params.allowInsecure, + ); + } // https://github.com/2dust/v2rayN/wiki/%E5%88%86%E4%BA%AB%E9%93%BE%E6%8E%A5%E6%A0%BC%E5%BC%8F%E8%AF%B4%E6%98%8E(ver-2) if (proxy.tls && proxy.sni) { proxy.sni = params.sni;