fix: 修复 VMess VLESS servername

This commit is contained in:
xream 2024-10-17 14:01:44 +08:00
parent 839fcacf63
commit 6cf8080cd3
No known key found for this signature in database
GPG Key ID: 1D2C5225471789F9
2 changed files with 6 additions and 1 deletions

View File

@ -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": {

View File

@ -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'];
}