feat: closes #556; mihomo 不再从全局配置获取的 global-client-fingerprint; 默认的 client-fingerprint 仅用于 reality

This commit is contained in:
xream committed 2026-03-13 20:20:47 +08:00
1 parent e9297e875a
commit 9563df231c
3 files changed
+4 -15

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "sub-store",
"version": "2.21.46",
"version": "2.21.47",
"description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and Shadowrocket.",
"main": "src/main.js",
"scripts": {
@@ -103,21 +103,11 @@ function Clash() {
},
);
const {
proxies,
'global-client-fingerprint': globalClientFingerprint,
} = safeLoad(afterReplace);
const { proxies } = safeLoad(afterReplace);
return (
(includeProxies ? 'proxies:\n' : '') +
proxies
.map((p) => {
if (
globalClientFingerprint &&
['trojan', 'vmess', 'vless'].includes(p.type) &&
!p['client-fingerprint']
) {
p['client-fingerprint'] = globalClientFingerprint;
}
return `${includeProxies ? ' - ' : ''}${JSON.stringify(
p,
)}\n`;
@@ -73,9 +73,8 @@ export default function ClashMeta_Producer() {
return true;
})
.map((proxy) => {
if (['trojan', 'vmess', 'vless'].includes(proxy.type)) {
proxy['client-fingerprint'] =
proxy['client-fingerprint'] || 'chrome';
if (proxy['reality-opts'] && !proxy['client-fingerprint']) {
proxy['client-fingerprint'] = 'chrome';
}
if (proxy.type === 'vmess') {
// handle vmess aead