diff --git a/backend/package.json b/backend/package.json index b625cea09..d1e245dd6 100644 --- a/backend/package.json +++ b/backend/package.json @@ -1,6 +1,6 @@ { "name": "sub-store", - "version": "2.14.10", + "version": "2.14.11", "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/uri.js b/backend/src/core/proxy-utils/producers/uri.js index 050372974..feb82ae51 100644 --- a/backend/src/core/proxy-utils/producers/uri.js +++ b/backend/src/core/proxy-utils/producers/uri.js @@ -75,6 +75,8 @@ export default function URI_Producer() { case 'trojan': result = `trojan://${proxy.password}@${proxy.server}:${ proxy.port + }?sni=${encodeURIComponent(proxy.sni || proxy.server)}${ + proxy['skip-cert-verify'] ? '&allowInsecure=1' : '' }#${encodeURIComponent(proxy.name)}`; break; }