diff --git a/backend/package.json b/backend/package.json index 6da7373..273564f 100644 --- a/backend/package.json +++ b/backend/package.json @@ -1,6 +1,6 @@ { "name": "sub-store", - "version": "2.19.33", + "version": "2.19.34", "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 5675ae0..b2fa24d 100644 --- a/backend/src/core/proxy-utils/parsers/index.js +++ b/backend/src/core/proxy-utils/parsers/index.js @@ -456,8 +456,12 @@ function URI_VMess() { ); } // 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 && params.sni && params.sni !== '') { - proxy.sni = params.sni; + if (proxy.tls) { + if (params.sni && params.sni !== '') { + proxy.sni = params.sni; + } else if (params.peer && params.peer !== '') { + proxy.sni = params.peer; + } } let httpupgrade = false; // handle obfs