Skip to content

Commit

Permalink
feat: Added support for SNI & allowInsecure of Trojan URI
Browse files Browse the repository at this point in the history
  • Loading branch information
xream committed Aug 15, 2023
1 parent 0483442 commit bc9fae6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion backend/package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
2 changes: 2 additions & 0 deletions backend/src/core/proxy-utils/producers/uri.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit bc9fae6

Please sign in to comment.