Skip to content

Commit

Permalink
fix: trojan network tcp
Browse files Browse the repository at this point in the history
  • Loading branch information
xream committed Aug 24, 2023
1 parent 1f50575 commit 46738d5
Show file tree
Hide file tree
Showing 2 changed files with 4 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.22",
"version": "2.14.23",
"description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and ShadowRocket.",
"main": "src/main.js",
"scripts": {
Expand Down
3 changes: 3 additions & 0 deletions backend/src/core/proxy-utils/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,9 @@ function safeMatch(parser, line) {

function lastParse(proxy) {
if (proxy.type === 'trojan') {
if (proxy.network === 'tcp') {
delete proxy.network;
}
proxy.tls = true;
}
if (proxy.tls && !proxy.sni) {
Expand Down

0 comments on commit 46738d5

Please sign in to comment.