feat: 修改 sni off 的转换逻辑

This commit is contained in:
xream committed 2026-06-06 00:34:59 +08:00
1 parent e0b0062eae
commit a74a938b11
2 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "sub-store",
"version": "2.24.5",
"version": "2.24.6",
"description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and Shadowrocket.",
"main": "src/main.js",
"packageManager": "pnpm@11.0.9",
+3 -3
View File
@@ -509,11 +509,11 @@ function produce(proxies, targetPlatform, type, opts = {}) {
proxy.sni = 'off';
} else if (!['tuic'].includes(proxy.type)) {
$.error(
`Target platform ${targetPlatform} does not support sni off. Proxy's fields (sni, tls-fingerprint and skip-cert-verify) will be modified.`,
`Target platform ${targetPlatform} does not support sni off, proxy ${proxy.name} sni will be set to empty string instead.`,
);
proxy.sni = '';
proxy['skip-cert-verify'] = true;
delete proxy['tls-fingerprint'];
// proxy['skip-cert-verify'] = true;
// delete proxy['tls-fingerprint'];
}
}