From c3e5da7ee40063fdb608c2fae56790c70c59d834 Mon Sep 17 00:00:00 2001 From: xream Date: Sat, 17 Feb 2024 10:50:33 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=85=BC=E5=AE=B9=E4=B8=8D=E8=A7=84?= =?UTF-8?q?=E8=8C=83=E7=9A=84=20VLESS=20URI?= 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 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/package.json b/backend/package.json index 9207e59..5f1bf9d 100644 --- a/backend/package.json +++ b/backend/package.json @@ -1,6 +1,6 @@ { "name": "sub-store", - "version": "2.14.220", + "version": "2.14.221", "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 c2b7cc3..2798e57 100644 --- a/backend/src/core/proxy-utils/parsers/index.js +++ b/backend/src/core/proxy-utils/parsers/index.js @@ -406,7 +406,7 @@ function URI_VLESS() { proxy.tls = true; params.security = params.security ?? 'reality'; } - proxy.sni = params.sni ?? params.peer; + proxy.sni = params.sni || params.peer; proxy.flow = params.flow; if (!proxy.flow && isShadowrocket && params.xtls) { // "none" is undefined