mirror of
https://git.mirrors.martin98.com/https://github.com/sub-store-org/Sub-Store.git
synced 2025-08-14 05:35:54 +08:00
fix: QX tls
This commit is contained in:
parent
f8ed6a3342
commit
96769598ef
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "sub-store",
|
"name": "sub-store",
|
||||||
"version": "2.14.16",
|
"version": "2.14.17",
|
||||||
"description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and ShadowRocket.",
|
"description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and ShadowRocket.",
|
||||||
"main": "src/main.js",
|
"main": "src/main.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
@ -62,18 +62,20 @@ function shadowsocks(proxy) {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
// tls fingerprint
|
if (needTls(proxy)) {
|
||||||
appendIfPresent(
|
// tls fingerprint
|
||||||
`,tls-cert-sha256=${proxy['tls-fingerprint']}`,
|
appendIfPresent(
|
||||||
'tls-fingerprint',
|
`,tls-cert-sha256=${proxy['tls-fingerprint']}`,
|
||||||
);
|
'tls-fingerprint',
|
||||||
|
);
|
||||||
|
|
||||||
// tls verification
|
// tls verification
|
||||||
appendIfPresent(
|
appendIfPresent(
|
||||||
`,tls-verification=${!proxy['skip-cert-verify']}`,
|
`,tls-verification=${!proxy['skip-cert-verify']}`,
|
||||||
'skip-cert-verify',
|
'skip-cert-verify',
|
||||||
);
|
);
|
||||||
appendIfPresent(`,tls-host=${proxy.sni}`, 'sni');
|
appendIfPresent(`,tls-host=${proxy.sni}`, 'sni');
|
||||||
|
}
|
||||||
|
|
||||||
// tfo
|
// tfo
|
||||||
appendIfPresent(`,fast-open=${proxy.tfo}`, 'tfo');
|
appendIfPresent(`,fast-open=${proxy.tfo}`, 'tfo');
|
||||||
@ -150,18 +152,20 @@ function trojan(proxy) {
|
|||||||
append(`,over-tls=true`);
|
append(`,over-tls=true`);
|
||||||
}
|
}
|
||||||
|
|
||||||
// tls fingerprint
|
if (needTls(proxy)) {
|
||||||
appendIfPresent(
|
// tls fingerprint
|
||||||
`,tls-cert-sha256=${proxy['tls-fingerprint']}`,
|
appendIfPresent(
|
||||||
'tls-fingerprint',
|
`,tls-cert-sha256=${proxy['tls-fingerprint']}`,
|
||||||
);
|
'tls-fingerprint',
|
||||||
|
);
|
||||||
|
|
||||||
// tls verification
|
// tls verification
|
||||||
appendIfPresent(
|
appendIfPresent(
|
||||||
`,tls-verification=${!proxy['skip-cert-verify']}`,
|
`,tls-verification=${!proxy['skip-cert-verify']}`,
|
||||||
'skip-cert-verify',
|
'skip-cert-verify',
|
||||||
);
|
);
|
||||||
appendIfPresent(`,tls-host=${proxy.sni}`, 'sni');
|
appendIfPresent(`,tls-host=${proxy.sni}`, 'sni');
|
||||||
|
}
|
||||||
|
|
||||||
// tfo
|
// tfo
|
||||||
appendIfPresent(`,fast-open=${proxy.tfo}`, 'tfo');
|
appendIfPresent(`,fast-open=${proxy.tfo}`, 'tfo');
|
||||||
@ -221,18 +225,20 @@ function vmess(proxy) {
|
|||||||
if (proxy.tls) append(`,obfs=over-tls`);
|
if (proxy.tls) append(`,obfs=over-tls`);
|
||||||
}
|
}
|
||||||
|
|
||||||
// tls fingerprint
|
if (needTls(proxy)) {
|
||||||
appendIfPresent(
|
// tls fingerprint
|
||||||
`,tls-cert-sha256=${proxy['tls-fingerprint']}`,
|
appendIfPresent(
|
||||||
'tls-fingerprint',
|
`,tls-cert-sha256=${proxy['tls-fingerprint']}`,
|
||||||
);
|
'tls-fingerprint',
|
||||||
|
);
|
||||||
|
|
||||||
// tls verification
|
// tls verification
|
||||||
appendIfPresent(
|
appendIfPresent(
|
||||||
`,tls-verification=${!proxy['skip-cert-verify']}`,
|
`,tls-verification=${!proxy['skip-cert-verify']}`,
|
||||||
'skip-cert-verify',
|
'skip-cert-verify',
|
||||||
);
|
);
|
||||||
appendIfPresent(`,tls-host=${proxy.sni}`, 'sni');
|
appendIfPresent(`,tls-host=${proxy.sni}`, 'sni');
|
||||||
|
}
|
||||||
|
|
||||||
// AEAD
|
// AEAD
|
||||||
if (isPresent(proxy, 'aead')) {
|
if (isPresent(proxy, 'aead')) {
|
||||||
@ -268,18 +274,20 @@ function http(proxy) {
|
|||||||
}
|
}
|
||||||
appendIfPresent(`,over-tls=${proxy.tls}`, 'tls');
|
appendIfPresent(`,over-tls=${proxy.tls}`, 'tls');
|
||||||
|
|
||||||
// tls fingerprint
|
if (needTls(proxy)) {
|
||||||
appendIfPresent(
|
// tls fingerprint
|
||||||
`,tls-cert-sha256=${proxy['tls-fingerprint']}`,
|
appendIfPresent(
|
||||||
'tls-fingerprint',
|
`,tls-cert-sha256=${proxy['tls-fingerprint']}`,
|
||||||
);
|
'tls-fingerprint',
|
||||||
|
);
|
||||||
|
|
||||||
// tls verification
|
// tls verification
|
||||||
appendIfPresent(
|
appendIfPresent(
|
||||||
`,tls-verification=${!proxy['skip-cert-verify']}`,
|
`,tls-verification=${!proxy['skip-cert-verify']}`,
|
||||||
'skip-cert-verify',
|
'skip-cert-verify',
|
||||||
);
|
);
|
||||||
appendIfPresent(`,tls-host=${proxy.sni}`, 'sni');
|
appendIfPresent(`,tls-host=${proxy.sni}`, 'sni');
|
||||||
|
}
|
||||||
|
|
||||||
// tfo
|
// tfo
|
||||||
appendIfPresent(`,fast-open=${proxy.tfo}`, 'tfo');
|
appendIfPresent(`,fast-open=${proxy.tfo}`, 'tfo');
|
||||||
@ -308,18 +316,20 @@ function socks5(proxy) {
|
|||||||
}
|
}
|
||||||
appendIfPresent(`,over-tls=${proxy.tls}`, 'tls');
|
appendIfPresent(`,over-tls=${proxy.tls}`, 'tls');
|
||||||
|
|
||||||
// tls fingerprint
|
if (needTls(proxy)) {
|
||||||
appendIfPresent(
|
// tls fingerprint
|
||||||
`,tls-cert-sha256=${proxy['tls-fingerprint']}`,
|
appendIfPresent(
|
||||||
'tls-fingerprint',
|
`,tls-cert-sha256=${proxy['tls-fingerprint']}`,
|
||||||
);
|
'tls-fingerprint',
|
||||||
|
);
|
||||||
|
|
||||||
// tls verification
|
// tls verification
|
||||||
appendIfPresent(
|
appendIfPresent(
|
||||||
`,tls-verification=${!proxy['skip-cert-verify']}`,
|
`,tls-verification=${!proxy['skip-cert-verify']}`,
|
||||||
'skip-cert-verify',
|
'skip-cert-verify',
|
||||||
);
|
);
|
||||||
appendIfPresent(`,tls-host=${proxy.sni}`, 'sni');
|
appendIfPresent(`,tls-host=${proxy.sni}`, 'sni');
|
||||||
|
}
|
||||||
|
|
||||||
// tfo
|
// tfo
|
||||||
appendIfPresent(`,fast-open=${proxy.tfo}`, 'tfo');
|
appendIfPresent(`,fast-open=${proxy.tfo}`, 'tfo');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user