Skip to content

Commit

Permalink
fix: 修复 Egern VMess tcp
Browse files Browse the repository at this point in the history
  • Loading branch information
xream committed Feb 11, 2025
1 parent 7c398ba commit 6f82294
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
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.16.36",
"version": "2.16.37",
"description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and Shadowrocket.",
"main": "src/main.js",
"scripts": {
Expand Down
7 changes: 5 additions & 2 deletions backend/src/core/proxy-utils/producers/egern.js
Original file line number Diff line number Diff line change
Expand Up @@ -241,9 +241,12 @@ export default function Egern_Producer() {
skip_tls_verify: proxy['skip-cert-verify'],
},
};
} else if (proxy.network === 'tcp' || !proxy.network) {
} else if (
(proxy.network === 'tcp' || !proxy.network) &&
proxy.tls
) {
proxy.transport = {
[proxy.tls ? 'tls' : 'tcp']: {
tls: {
sni: proxy.tls ? proxy.sni : undefined,
skip_tls_verify: proxy.tls
? proxy['skip-cert-verify']
Expand Down

0 comments on commit 6f82294

Please sign in to comment.