mirror of
https://git.mirrors.martin98.com/https://github.com/sub-store-org/Sub-Store.git
synced 2025-08-14 05:56:00 +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,6 +62,7 @@ function shadowsocks(proxy) {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (needTls(proxy)) {
|
||||||
// tls fingerprint
|
// tls fingerprint
|
||||||
appendIfPresent(
|
appendIfPresent(
|
||||||
`,tls-cert-sha256=${proxy['tls-fingerprint']}`,
|
`,tls-cert-sha256=${proxy['tls-fingerprint']}`,
|
||||||
@ -74,6 +75,7 @@ function shadowsocks(proxy) {
|
|||||||
'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,6 +152,7 @@ function trojan(proxy) {
|
|||||||
append(`,over-tls=true`);
|
append(`,over-tls=true`);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (needTls(proxy)) {
|
||||||
// tls fingerprint
|
// tls fingerprint
|
||||||
appendIfPresent(
|
appendIfPresent(
|
||||||
`,tls-cert-sha256=${proxy['tls-fingerprint']}`,
|
`,tls-cert-sha256=${proxy['tls-fingerprint']}`,
|
||||||
@ -162,6 +165,7 @@ function trojan(proxy) {
|
|||||||
'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,6 +225,7 @@ function vmess(proxy) {
|
|||||||
if (proxy.tls) append(`,obfs=over-tls`);
|
if (proxy.tls) append(`,obfs=over-tls`);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (needTls(proxy)) {
|
||||||
// tls fingerprint
|
// tls fingerprint
|
||||||
appendIfPresent(
|
appendIfPresent(
|
||||||
`,tls-cert-sha256=${proxy['tls-fingerprint']}`,
|
`,tls-cert-sha256=${proxy['tls-fingerprint']}`,
|
||||||
@ -233,6 +238,7 @@ function vmess(proxy) {
|
|||||||
'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,6 +274,7 @@ function http(proxy) {
|
|||||||
}
|
}
|
||||||
appendIfPresent(`,over-tls=${proxy.tls}`, 'tls');
|
appendIfPresent(`,over-tls=${proxy.tls}`, 'tls');
|
||||||
|
|
||||||
|
if (needTls(proxy)) {
|
||||||
// tls fingerprint
|
// tls fingerprint
|
||||||
appendIfPresent(
|
appendIfPresent(
|
||||||
`,tls-cert-sha256=${proxy['tls-fingerprint']}`,
|
`,tls-cert-sha256=${proxy['tls-fingerprint']}`,
|
||||||
@ -280,6 +287,7 @@ function http(proxy) {
|
|||||||
'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,6 +316,7 @@ function socks5(proxy) {
|
|||||||
}
|
}
|
||||||
appendIfPresent(`,over-tls=${proxy.tls}`, 'tls');
|
appendIfPresent(`,over-tls=${proxy.tls}`, 'tls');
|
||||||
|
|
||||||
|
if (needTls(proxy)) {
|
||||||
// tls fingerprint
|
// tls fingerprint
|
||||||
appendIfPresent(
|
appendIfPresent(
|
||||||
`,tls-cert-sha256=${proxy['tls-fingerprint']}`,
|
`,tls-cert-sha256=${proxy['tls-fingerprint']}`,
|
||||||
@ -320,6 +329,7 @@ function socks5(proxy) {
|
|||||||
'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