Skip to content

Commit

Permalink
fix: 修复 VMess VLESS servername
Browse files Browse the repository at this point in the history
  • Loading branch information
xream committed Oct 17, 2024
1 parent 839fcac commit 6cf8080
Show file tree
Hide file tree
Showing 2 changed files with 6 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.398",
"version": "2.14.399",
"description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and ShadowRocket.",
"main": "src/main.js",
"scripts": {
Expand Down
5 changes: 5 additions & 0 deletions backend/src/core/proxy-utils/parsers/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -879,6 +879,11 @@ function Clash_All() {
);
}

// handle vmess sni
if (['vmess', 'vless'].includes(proxy.type)) {
proxy.sni = proxy.servername;
delete proxy.servername;
}
if (proxy['server-cert-fingerprint']) {
proxy['tls-fingerprint'] = proxy['server-cert-fingerprint'];
}
Expand Down

0 comments on commit 6cf8080

Please sign in to comment.